Skip to main content
Glama

Get statistics

get_stats
Read-only

Read organization-wide record totals, success rate, tokens and cost summary, with by_model: per model composite key, its records, successes, cost and mean LLM time. No LLM call. This tool has no job filter; use list_records(job_id=...) for a particular run and benchmark tools for comparative quality/cost/speed scores.

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

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the read-only, closed-world, non-destructive profile, and the description adds genuinely new context: 'No LLM call' (no cost/latency side effect) and the absence of a job filter. It does not state the time window of the aggregation (all-time vs. recent), which is the main undisclosed behavioral assumption for a zero-parameter tool.

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?

Purpose is front-loaded with the alternative routing immediately after, and nothing is wasted. The 'with by_model: ...' clause is telegraphic and reads awkwardly compared to the rest of the prose, but it is compact.

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?

Output schema exists so return values need not be fully re-explained, and annotations cover safety; the description adds the cost implication and scope limits. The only gap is the aggregation window, which matters for interpreting totals but is not stated.

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?

The tool takes zero parameters, so the baseline is 4. The description correctly clarifies that aggregation is organization-wide with no filtering dimension, which preempts an agent from searching for a job_id argument that does not exist.

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

Purpose5/5

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

States a specific verb and resource ('Read organization-wide record totals, success rate, tokens and cost summary') and enumerates the per-model breakdown fields. An agent can distinguish it from list_records and benchmark tools without opening any schema.

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

Usage Guidelines5/5

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

Explicitly states the exclusion ('no job filter') and names the alternatives with the condition that selects them: list_records(job_id=...) for a specific run, benchmark tools for comparative quality/cost/speed. When, when-not, and alternatives are all present.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.