Skip to main content
Glama
surgical-context-mcp

surgical-context-mcp

by erayerturk

get_symbol_impact

Assess refactor impact by retrieving callers, callees, cross-language contracts, events, coverage warnings, and exact file:line ranges for a symbol, avoiding full-file reads.

Instructions

Get callers, callees, cross-language contracts (opcodes/config), events, coverage warnings, and exact file:line ranges for symbol.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "get_symbol_impact"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNo
symbolYes
max_linesNo
max_tokensNo
project_pathNo
output_formatNomarkdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it does not say whether this is a safe read, whether it requires a reindex, how `depth` changes traversal cost, or whether results are truncated by `max_lines`/`max_tokens`. Worse, the bulk of the sentence enumerates return values, which is information the output schema already covers. Only "coverage warnings" hints at behavior rather than payload.

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 dense sentence with the resource front-loaded and no filler. It is efficiently sized, though the content is weighted toward enumerating outputs rather than orienting usage.

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?

The tool takes six parameters — including a nullable `project_path` and two competing truncation knobs — yet none are explained, and with no annotations the safety profile is entirely unstated. The existing output schema excuses the description from explaining return values, but that is precisely what it spends its words on, leaving invocation guidance incomplete.

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% across six parameters, so the description must compensate. It implicitly defines the required `symbol` via backticks, but says nothing about `depth`, `project_path`, `output_format`, or the truncation parameters `max_lines`/`max_tokens`. This is a partial gap rather than total silence, so slightly below the adequate baseline.

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 names a specific verb ("Get") and enumerates exactly what is retrieved for a symbol: callers, callees, cross-language contracts, events, coverage warnings, and file:line ranges. An agent can form a concrete picture of the tool's purpose. It stops short of differentiating itself from plausible siblings like `find_flow` or `get_edit_context`, so a 4 rather than 5.

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 statement of when this tool should be chosen over `find_flow`, `get_architecture_map`, `check_rename_or_delete`, or `get_diff_impact`, and no preconditions (e.g., whether the project must be indexed first). The agent must infer usage purely from the returned-data list.

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