Skip to main content
Glama
grandMA2 MCP
by drohi-r

agent_token_report

Analyze token consumption across recent agent sessions to track usage and costs, with a limit parameter to control how many sessions are included in the report.

Instructions

    Report token consumption across recent agent sessions.

    Args:
        limit: Number of sessions to analyse
    

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

Input Schema

NameRequiredDescriptionDefault
limitNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It implies a read-only reporting operation but never says so explicitly, and says nothing about the time window that 'recent' covers, whether results are aggregated or per-session, or whether any cost or token accounting caveats apply.

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

Conciseness5/5

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

Two short elements: a front-loaded purpose sentence followed by a single parameter line. Nothing is wasted, and the essential information appears first.

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?

An output schema exists, so return-value detail need not be described. For a single-optional-parameter reporting tool this is nearly sufficient; the main residual gap is the absence of any read-only/scope assurance, which matters slightly more given there are no annotations.

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 description coverage is 0%, so the description must compensate. It does clarify that limit means 'Number of sessions to analyse' and that analysis is over sessions rather than messages, which is genuine added meaning beyond the bare integer 'limit' with default 20. It stops short of stating bounds, ordering, or what happens when limit exceeds the number of available sessions.

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 and resource: 'Report token consumption across recent agent sessions.' An agent immediately knows this is a token-usage analytics tool. It does not, however, distinguish itself from related siblings such as get_telemetry_report or generate_compliance_report, which could plausibly report overlapping metrics.

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 when-to-use guidance, no statement of what distinguishes this from other reporting tools, and no mention of prerequisites or when not to call it. The 'recent sessions' phrasing hints at scope but leaves the agent to infer whether this is a summary, per-session breakdown, or cost estimate.

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