Skip to main content
Glama
surgical-context-mcp

surgical-context-mcp

by erayerturk

get_diff_impact

Analyze git diff changes to identify modified symbols, affected callers, cross-language contracts, and runnable test commands for safe refactors.

Instructions

Analyze git diff changes and return modified symbols, affected callers, cross-language contracts, and runnable test commands.

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

Input Schema

NameRequiredDescriptionDefault
base_refNoHEAD
project_pathNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; it does disclose the shape of what comes back (symbols, callers, contracts, test commands), which is meaningful. It omits whether the operation is read-only, whether it requires a git repository or working tree state, how expensive a cross-language analysis is, and how base_ref affects the comparison.

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?

A single front-loaded sentence with no filler; the verb and resource come first and the output list follows, so the reader gets purpose and result in one pass.

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?

An output schema exists, so return values need no further explanation, and the description is adequate for the core intent. However, with zero parameter documentation and no guidance against overlapping sibling tools, it is only minimally sufficient for a two-parameter analysis tool.

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 two parameters, so the description should compensate and does not: neither 'base_ref' nor 'project_path' is mentioned. The schema only supplies titles and defaults (HEAD, null), leaving an agent to guess what a base ref means here or when project_path is needed.

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?

States a specific verb ('Analyze') and resource ('git diff changes') and enumerates concrete outputs: modified symbols, affected callers, cross-language contracts, and runnable test commands. It does not distinguish itself from siblings like get_symbol_impact or check_rename_or_delete, so an agent cannot tell from the text alone which impact tool to pick.

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

Usage Guidelines3/5

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

Usage is only implied by the phrase 'git diff changes' — an agent can infer this applies after edits are made in a working tree, but there is no explicit when-to-use, no when-not-to-use, and no reference to the sibling impact tools that overlap with it.

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