Skip to main content
Glama

get_swarm_metrics

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
kindNo
repoNoowner/name or a GitHub clone URL; omitted, every repository
sizeNo
sinceNoonly pull requests opened at or after this time
untilNoonly pull requests opened before this time; with since, one window
engineNo
harnessNoonly tasks mostly run by this harness (claude-code, cursor, codex, ...)
providerNoonly tasks whose spend was mostly with this model provider, as usage reports named it (anthropic, openai, xai, ...)
behind_limitNocommits behind at which a round's base is flagged stale (default 50)
linear_issueNoonly tasks for these Linear issues, comma-separated (ENG-123,ENG-124)
rounds_limitNorounds after which an unmerged task is flagged non-converging (default 3)
workspace_idYesyour own workspace (whoami's workspace_id)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds real behavior beyond the readOnly/openWorld/idempotent annotations: it discloses that pull requests not yet seen closed are fetched from GitHub first when the server has a GitHub client, which explains the openWorldHint and warns of outbound latency. It also explains the flagging semantics ('whether it needs a look') that the limit parameters drive. It does not say what happens on GitHub failure or how large the response can get.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the resource, which is good, but the second sentence is a long run-on that packs ~8 measurement axes into one clause and is hard to parse on first read. The REST-twin sentence is useful but could be trimmed; overall it is dense rather than wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter read tool with no output schema, the description does the necessary work of describing what comes back (per-agent PR rounds, time to ready/merge, delivered-as-merged, cost, attention flag, plus rollups). It omits result cardinality/pagination and error behavior for the GitHub fetch, which keeps it short of a 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 12 parameters and 75% schema description coverage, the schema does most of the work, so the baseline is 3. The description nevertheless maps the rollup dimensions to the filter parameters (repository, engine, size, risk, provider, harness) and frames the threshold parameters as producing a 'needs a look' flag, which adds meaning beyond the enum definitions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('The workspace's swarm ramp metrics') and then enumerates the per-agent PR measurements plus the rollup dimensions (repository, engine, size, risk, provider, harness), which is far more than a restatement of the name. It never names a sibling tool, but no sibling in the listed catalog covers ramp/PR metrics, so the risk of confusion is low.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use or when-not-to-use guidance and no named alternative; the agent must infer that this is the fleet-level ramp report as opposed to the gate/queue/occupancy getters. The pointer to 'GET /workspaces/{id}/swarm-metrics' gives some orientation for agents that know the REST surface, but that is context rather than a selection rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools