Skip to main content
Glama

token_history

Retrieves graph-ready token savings history across semantic search requests so you can track how much context each query consumed. Limit results and scope them to a project root.

Instructions

Show graph-ready token savings history across search requests.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
project_rootNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. 'Show' implies read-only retrieval, but it does not disclose whether the query is scoped to a project by default, how much history is retained, or whether results are paginated; the output schema helps with return structure, but operational behavior remains thin.

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 well-formed sentence with the core purpose front-loaded and no repetition. 'Graph-ready' is slightly jargony, but the sentence is not padded or wasteful.

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

Completeness2/5

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

For a low-complexity history retrieval tool, this is incomplete: two optional parameters are undocumented and there is no usage context. The existing output schema covers return structure, but the description does not do enough to ensure correct invocation.

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

Parameters1/5

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

Both parameters (limit and project_root) have 0% schema description coverage, and the description mentions neither of them. It adds no meaning about the limit's range, default behavior, or how project_root changes the query scope.

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 verb 'Show' and resource 'token savings history across search requests' make the core function specific, and 'graph-ready' signals the output shape. It does not explicitly distinguish itself from siblings like token_counter or lookup_project_history, but the subject matter is clear enough to identify the right tool.

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?

No when-to-use guidance, prerequisites, or alternatives are stated. The phrase 'across search requests' hints at scope, but an agent gets no instruction on when to choose this over token_counter or lookup_project_history.

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