get_swarm_metrics
Retrieve workspace swarm metrics for agent pull requests, including rounds, ready/merge time, cost, delivery status, and rollups by repository, engine, size, risk, provider, and harness.
Instructions
The workspace's swarm ramp metrics: per agent pull request the rounds it took, time to ready and to merge, whether it merged as delivered, its cost and whether it needs a look, with rollups per repository, engine, size, risk, provider and harness. Pull requests not yet seen closed are read from GitHub first when the server has a GitHub client. The twin of GET /workspaces/{id}/swarm-metrics.
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": {
"workspace_id": "<workspace_id>"
},
"name": "get_swarm_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| repo | No | owner/name or a GitHub clone URL; omitted, every repository | |
| size | No | ||
| since | No | only pull requests opened at or after this time | |
| until | No | only pull requests opened before this time; with since, one window | |
| engine | No | ||
| harness | No | only tasks mostly run by this harness (claude-code, cursor, codex, ...) | |
| provider | No | only tasks whose spend was mostly with this model provider, as usage reports named it (anthropic, openai, xai, ...) | |
| behind_limit | No | commits behind at which a round's base is flagged stale (default 50) | |
| linear_issue | No | only tasks for these Linear issues, comma-separated (ENG-123,ENG-124) | |
| rounds_limit | No | rounds after which an unmerged task is flagged non-converging (default 3) | |
| workspace_id | Yes | your own workspace (whoami's workspace_id) |