Skip to main content
Glama

token_counter

Retrieves the latest token usage report for editor integrations, helping you monitor consumption and track context costs.

Instructions

Get latest token usage report for editor integrations.

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_counter"
  }
}

Input Schema

NameRequiredDescriptionDefault
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?

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing: no statement that the call is read-only with no side effects, no auth or permission requirements, no indication of whether the report is computed on demand or cached. 'Get' weakly implies a read, but that is inference rather than disclosure.

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?

One short, front-loaded sentence with no redundant wording. It is efficient, though the terseness is partly the cause of the missing detail rather than a virtue in itself.

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?

The tool is simple and an output schema exists, so return values need no explanation. Still, with no annotations and an undocumented parameter, the definition leaves the read-only nature and the meaning of project_root unspecified - gaps an agent must guess around.

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

Parameters2/5

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

The single parameter project_root has 0% schema description coverage and is never mentioned in the description. Its empty-string default is unexplained, even though an agent needs to know whether omitting it means 'current working project' or 'all projects'.

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

Purpose3/5

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

The description names a specific verb and resource ('Get latest token usage report'), which is clearer than a tautology. However, the qualifier 'for editor integrations' is ambiguous (scope of the report? intended consumer?) and it never distinguishes itself from the sibling token_history, which an agent would naturally weigh against it.

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 stated preconditions, and no mention of an alternative such as token_history for past/aggregate usage. The word 'latest' hints at a current-snapshot scope but the agent is left to infer that this is the differentiator.

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