Skip to main content
Glama
surgical-context-mcp

surgical-context-mcp

by erayerturk

get_token_savings

Returns measured token savings for recorded code-graph queries by comparing returned tokens against raw file sizes, helping verify reduced token use from avoiding full-file reads.

Instructions

Return direct measured token savings (returned tokens vs raw file sizes) across all recorded code-graph queries.

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

Input Schema

NameRequiredDescriptionDefault
resetNo
project_pathNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it leaves a significant gap: the `reset` parameter almost certainly clears accumulated statistics, yet the description never discloses that data loss, nor any permission or rate-limit considerations. It does add useful context about what is measured and that the scope is 'all recorded code-graph queries', which is genuine value beyond the name.

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 front-loaded sentence with no filler; the parenthetical defining the measurement is the only elaboration and it earns its place. Slightly dense, but nothing is wasted.

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?

An output schema exists, so return values need not be explained, but the tool still has two undocumented parameters, one of which appears destructive, and no usage context. For a metrics tool with an implicitly destructive flag, the definition does too little.

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?

Schema description coverage is 0% for both parameters, so the description must compensate and does not: neither `reset` nor `project_path` is named or explained. The phrase 'across all recorded queries' arguably implies a no-filter aggregate, which creates ambiguity about what `project_path` does rather than clarifying it.

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 ('Return') with a clearly named resource ('direct measured token savings') and even defines the measurement basis ('returned tokens vs raw file sizes'). An agent can tell this is a metrics/reporting tool, distinct from the sibling tools like search_symbols or get_architecture_map, though it never explicitly says so.

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 mention of prerequisites, and no reference to any alternative or adjacent tool. The agent must infer that this is for reporting/observability after code-graph queries have run, which is a reasonable inference but not stated.

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