Skip to main content
Glama

Get stats

get_stats
Read-onlyIdempotent

Aggregate run statistics over a configurable time window (7, 30, 90 days, or all) to review DevIntern worker activity, usage, and queue trends.

Instructions

Aggregate run statistics over a time window (devintern worker stats --json).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
windowNoDefault 30d

Output Schema

NameRequiredDescriptionDefault
statsNo
windowNo
messageNo
errorCodeNoSet on failure: stable error code
nextStepsNoSet on failure: steps to run next (`command` runs on the worker host)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered without description help. The description adds that results are aggregated over a boundable time window and cites the underlying CLI command, but says nothing about aggregation granularity, freshness/caching, or cost of an 'all' window.

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

Conciseness4/5

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

A single short sentence that leads with the action and scope – no waste and nothing buried. The parenthetical CLI reference is of marginal value to an agent invoking the MCP tool, which keeps it just short of a 5.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the single optional param is fully documented by the schema with rich annotations on top. What is missing is positioning against the many sibling status/overview tools, which is the main thing an agent needs before choosing this one.

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

Parameters3/5

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

Schema coverage is 100% and the single 'window' parameter already carries an enum and a 'Default 30d' note, so the schema does the heavy lifting. The description's 'over a time window' merely restates the parameter's existence without clarifying what each window value aggregates over or how 'all' behaves.

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?

Names a specific verb and resource ('Aggregate run statistics') plus the scoping dimension ('over a time window'), so an agent knows exactly what is returned. It does not, however, differentiate against plausible siblings such as get_overview, get_usage_status, or get_queue, leaving ambiguity about which aggregate view is wanted.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. With siblings like get_overview and get_usage_status in the catalog, the agent is left to infer that this is the run-centric aggregate view rather than a workspace or usage summary.

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