Get a workflow's usage
get_workflow_usageReturns what the console's Usage page shows for a workflow over the last 30 days: calls, the call success rate, p50 and p95 latency, and credits; calls per day; status codes; calls per version; runs still in progress; and the latest 50 calls (status code, version, credits, latency, source, and the run with its status and failure). Totals count calls by their HTTP response (totals.runs is calls, succeeded/failed are 2xx/error responses): a run accepted with 202 counts as succeeded even if it fails or is cancelled later, so read each recent call's run.status for how it ended. API calls, automations, and webhook triggers only (Studio tests aren't counted). Metadata only.
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_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | A workflow ID, like wf_… |