get_workflow_runs
Inspect workflow run history. Two modes controlled by run_id presence:
Input roles:
- workflow_id: UUID string of the workflow.
- run_id: UUID string. If present → single-run detail with step logs and tool call logs. If absent → paginated list of runs.
- status: list-mode filter. Ignored in single mode.
- page / per_page: list-mode pagination.
Usage patterns:
- When the user asks "did my workflow run?": call with just workflow_id (list mode) and look at items[0].status + items[0].completed_at.
- When the user asks "what did that run do?": call with workflow_id + run_id (single mode) and read _step_logs and _tool_call_logs.
- When troubleshooting failures: filter list mode by status="failed", then pull each detail.
- Each run's `id` is a UUID string. The `link_url` on each run points to its detail page in Marcora.
**Links:** present `link_url` to the user exactly as returned — copy it character for character. Never retype, shorten, or rebuild a link or the IDs inside it.Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workflow_id": "<workflow_id>"
},
"name": "get_workflow_runs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number through the run list, which is ordered newest first. Defaults to 1, so you only need it to reach runs older than the first page. Ignored when `run_id` is supplied. | |
| run_id | No | UUID of one specific run to inspect in full — its step-by-step logs, tool calls and the agent's messages. Pass it when the user asks what a particular run actually did. Omit it to get the paginated list of runs instead. | |
| status | No | Restricts the run list to a single exact status: "pending", "running", "succeeded", "failed" or "skipped". Use "failed" when troubleshooting, or "running" to see whether something is in flight. Ignored when `run_id` is supplied. | |
| per_page | No | How many runs to return per page. Defaults to 20 when omitted or when the value is not a positive number; set it low (for example 5) when you only need the most recent few. Ignored when `run_id` is supplied. | |
| workflow_id | Yes | UUID of the workflow whose run history you want. Required. It scopes the list of runs; when you also pass `run_id`, the run is looked up by that id alone and this value is not used to filter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Single-run mode — the run UUID. | |
| items | No | List mode only — array of runs (most recent first). | |
| status | No | Single-run mode — run status. | |
| link_url | No | URL to the run detail page (single-run mode; also present on each list item). | |
| _step_logs | No | Single-run mode — per-step execution logs. | |
| itemsTotal | No | List mode only — total number of runs. | |
| _tool_call_logs | No | Single-run mode — tool call logs. | |
| workflow_template_id | No | Single-run mode — parent workflow UUID. |