Skip to main content
Glama

save_token_stats

Reports actual byte and token savings by comparing raw processed input with returned context, plus active state keys, persisted memory, indexed sources, handoffs, and background jobs.

Instructions

Report real byte/token savings (rawProcessed vs returnedToContext), active state keys, persisted kv_memory, FTS5 sources, handoffs, and background jobs.

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": "save_token_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral burden. It discloses that the tool reports specific data such as rawProcessed versus returnedToContext and active state keys, and 'Report' implies a read-only operation. However, it does not explicitly state read-only behavior, permissions, side effects, or rate limits.

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?

The definition is a single front-loaded sentence with no filler; each listed item is relevant to what the report contains. It is somewhat dense with internal jargon, but still compact and structured as a direct enumeration.

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?

For a zero-parameter stats tool with no annotations or output schema, the description lists the reported data well enough to indicate what the tool returns. It does not describe the return structure or format, and there is no output schema to compensate, so the agent must infer the response shape.

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 has zero parameters, so there are no parameter semantics to explain and the description appropriately does not discuss parameters. The baseline score of 4 applies for a parameterless tool.

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?

The description uses a specific verb, 'Report', and enumerates the resources/metrics it covers: byte/token savings, state keys, kv_memory, FTS5 sources, handoffs, and background jobs. This makes it distinguishable from action-oriented siblings such as save_token_exec, save_token_handoff, and save_token_poll. It does not explicitly name or route against a sibling, so it falls short of a 5.

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 guidance, no prerequisites, and no statement of when not to use this tool. The only usage signal is the implied purpose of viewing token and state statistics, leaving the agent to infer the call context.

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