Skip to main content
Glama

get_token_stats

Display estimated MCP token usage with per-tool counts, session totals, and top large calls. Switch to detail mode for hot queries, content-hash duplicates, chunking adoption, and cache-bypass rate.

Instructions

Show estimated MCP token usage. Default mode: "summary" returns per-tool counts, session totals, and top-5 historical large calls (~250-400 tok). mode: "detail" adds hot queries, content-hash dupes, chunking adoption, and cache-bypass rate (~1-1.5K tok). Itself cache-exempt and not token-logged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNosummary (default) or detail
Behavior5/5

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

The description explicitly states the tool is cache-exempt and not token-logged, which is critical behavioral information beyond the lack of annotations. This fully compensates for missing annotations.

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?

Three sentences efficiently convey purpose, modes, behavior, and output details without redundancy or unnecessary words.

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

Completeness5/5

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

Given no output schema, the description adequately explains what each mode returns, making it complete for the tool's diagnostic purpose.

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?

Schema covers 100% of the parameter with enum. Description adds value by explaining the output differences between modes and approximate token costs, surpassing the baseline of 3.

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?

The description clearly states the tool displays estimated MCP token usage, specifies two modes with distinct content, and distinguishes itself from sibling tools that serve different purposes.

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

Usage Guidelines4/5

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

It explains when to use each mode (summary for overview, detail for in-depth), but lacks explicit guidance on when not to use it or alternatives. However, sibling tools are unrelated, so context is adequate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chris-dare-dev/agent-kit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server