Common Mediation MCP workflows
Learn how to investigate failed runs, author and test meters, recover stuck runs, and refresh prefetch data.
Use the following workflows to combine Mediation MCP operations into common tasks. Review the impact of each write operation and obtain approval before you execute it.
Investigate a problem meter
- Call
list_metersorget_meterto identify the pipeline. - Call
get_run_statusto determine whether the meter is running. - Call
list_run_historyto find therunHistoryIdor session, such asR-*. - Call
get_run_summaryto review received, processed, and error counts. - Call
audit_trail_entrieswithexportTypeset toERRORto retrieve failure samples and codes. - Optionally call
get_operator_summaryto identify a slow or failing step.
Author, test, and reconcile a meter
- Call
meter_guidance. - Call
validate_meterwithout saving the task graph. - After approval, call
create_meter. - After approval, call
run_meterwith debug mode. - Call
get_run_statusandget_run_summaryto review the run. - Call
audit_trail_entrieswithERRORto review failures. - If you need a larger data set, call
create_audit_exportand download the export after the job is ready.
Recover a stuck run
- Call
get_run_status. - Call
stop_meter_runwith therunIdand use a graceful stop. - Poll the status until the run stops.
- If the run remains stuck, obtain approval before you force stop it through REST.
- Review
ERRORaudit data after the stop.
A force stop on a streaming run might drop data that is in flight.
Refresh the prefetch cache
- Call
list_prefetch_definitionsorget_prefetch_status. - Call
start_prefetch. You can optionally provide a processor ID. - Call
get_prefetch_statusuntil the prefetch operation is complete.
Common example calls
Use the following examples as starting points. Replace the sample meter ID, version, and history ID with values from your tenant.
List meters:
Check the current run status:
List run history:
Retrieve an operator summary:
Use the runHistoryId returned by list_run_history.
Retrieve error samples:
Natural-language requests and agent actions
When you make a request in natural language, the agent should use the following operation or workflow:
The agent must not execute write operations without approval.