Skip to main content
Glama

impact

Read-onlyIdempotent

Computes a symbol's transitive callers and hop distances to show what breaks before risky edits, plus the tests to re-run. Use for indirect dependencies beyond direct usages.

Instructions

Answer 'what breaks if I change this': everything that reaches a symbol transitively through the call graph, with hop distance, plus the tests to re-run. Use find_usages for the direct, one-hop answer; use this before a risky edit, when the indirect callers are the point. max_depth trades reach for noise: 2 stays close to the change, 6 on a hub symbol can return most of the codebase. Transitive callers need the graph layer.

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

Input Schema

NameRequiredDescriptionDefault
sourceNoSource name. Omit when only one source applies.
symbolYesIdentifier whose blast radius to compute.
max_depthNoCall-graph hops to walk (1-6).
tests_limitNoMax tests.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.12.0
    • removedInput schema / properties / source / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / source / default
      Removed value: -null
    • addedInput schema / properties / source / type
      Added value: +"string"
  2. Addedv1.9.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds value beyond that: it discloses a prerequisite ('transitive callers need the graph layer') and a concrete cost/quality tradeoff for depth (2 stays close, 6 on a hub symbol can return most of the codebase). It does not discuss result size limits or failure modes when the graph layer is unavailable, which keeps it off a 5.

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?

The core answer is front-loaded in the first clause, followed by routing guidance, usage timing, then the depth tradeoff. No sentence is redundant; the terse phrasing ('max_depth trades reach for noise') is dense but unambiguous.

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 no output schema, the description carries the return-shape burden and does so: hop distance and the tests to re-run. Combined with the depth guidance and graph-layer prerequisite, an agent has everything needed to call this correctly on a 4-parameter tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description still earns above baseline by explaining what max_depth actually buys and costs in practice, with concrete values (2 vs 6 on a hub symbol), which the schema's 'Call-graph hops to walk (1-6)' does not convey. source and tests_limit are left entirely to the schema.

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?

States a concrete question it answers ('what breaks if I change this') and defines the result precisely: everything reaching a symbol transitively through the call graph, with hop distance, plus tests to re-run. It explicitly separates itself from find_usages (direct, one-hop), so an agent can choose between the two without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use ('before a risky edit, when the indirect callers are the point') and names the alternative with the condition that selects it ('Use find_usages for the direct, one-hop answer'). This is the rare case where both the positive and negative routing conditions are spelled out.

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