Skip to main content
Glama

impact_of_change

Read-only

Identify code and tests affected by changing a symbol—direct and transitive callers—so you update and run the right tests before editing shared functions.

Instructions

What breaks if a symbol changes: code that uses it directly, code that uses that code, and the tests involved. Use this before editing a shared function, and run or update the tests it lists. Python, JavaScript and TypeScript are analysed structurally. Matches are by name, so check the same-name notes it returns.

Input Schema

NameRequiredDescriptionDefault
pathNoThe file that defines symbol, when several files define that name.
repoNoName of an indexed repo, as list_repos shows it. Leave out when only one repo is indexed.
depthNo1 = direct users only; 2 or 3 also follows users of those users.
symbolYesThe function, class or method you plan to change, e.g. "discount" or "Cart.total".

Output Schema

NameRequiredDescriptionDefault
notesYes
testsYesCitations of tests that exercise the target, directly or not.
directYes
symbolYes
targetYespath:start-end of the definition analysed.
summaryYes
indirectYes
same_name_definitionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.1
    • addedInput schema / properties / depth / description
      Added value: +"1 = direct users only; 2 or 3 also follows users of those users."
    • addedInput schema / properties / path / description
      Added value: +"The file that defines symbol, when several files define that name."
    • addedInput schema / properties / repo / description
      Added value: +"Name of an indexed repo, as list_repos shows it. Leave out when only one repo is indexed."
    • addedInput schema / properties / symbol / description
      Added value: +"The function, class or method you plan to change, e.g. \"discount\" or \"Cart.total\"."
  2. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses the analysis is structural and limited to Python, JavaScript and TypeScript, and critically that matches are name-based so results may include false positives flagged in 'same-name notes'. Those precision caveats are exactly the behavioral context an agent needs before trusting the output.

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?

Three short sentences, front-loaded with the outcome the agent cares about, then the usage trigger, then the caveat. Every clause carries information: scope, languages, matching caveat, and the test follow-up.

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

Completeness5/5

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

With a full input schema and an output schema present, the description need not explain return shape; it instead spends its space on language coverage, matching limitations, and pre-edit workflow — the pieces not covered by structured fields. Nothing an agent needs to invoke it correctly appears to be missing.

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 coverage is 100% and each parameter (path, repo, depth, symbol) already carries its own description, so the schema does the heavy lifting. The description adds no extra syntax or format guidance for depth levels or repo scoping, which is the expected baseline when the schema is fully documented.

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

Purpose5/5

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

The description opens with a specific question the tool answers ('What breaks if a symbol changes') and enumerates the exact result classes: direct users, transitive users, and involved tests. That verb-plus-resource framing makes it immediately distinguishable from siblings such as search, ask_codebase, or explain_history.

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

Usage Guidelines4/5

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

It gives a concrete trigger ('Use this before editing a shared function') and a follow-up action ('run or update the tests it lists'), which tells the agent when this tool is the right call. It stops short of naming an explicit alternative or exclusion (e.g. when to prefer search or explain_history instead).

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