Skip to main content
Glama

impact

Read-onlyIdempotent

Find every function that calls a symbol directly or transitively, with shortest distance, before editing it to see what may break.

Instructions

What breaks if symbol changes: every function that calls it directly or transitively (up to max_depth hops), with its shortest distance. Use before editing a function. Returns {symbol, max_depth, count, callers: [{qualname, module, depth, is_test}]} sorted by depth.

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
symbolYes
max_depthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, non-destructive, closed-world operation, and the description adds real value beyond them: the return object's fields, depth as shortest distance, sorting by depth, and the is_test flag. It stops short of noting traversal cost or behavior on unknown symbols, but the transparency is well above the annotation baseline.

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 tight sentences: purpose first, usage note second, return contract third. High information density with no filler.

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

Completeness4/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 supplies the return shape explicitly, and annotations cover safety. The only material gap for a two-parameter tool is the accepted syntax for `symbol`.

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 0%, so the description carries the whole burden. It clarifies the hop semantics of max_depth ("up to max_depth hops") and implies the result is keyed on the input symbol, but never specifies the expected format of `symbol` (bare name vs qualname vs module path), which is the one thing an agent most needs to get right.

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 names a specific query (transitive callers/impact set) over a specific resource (a symbol), and states the result shape and ordering. It is clearly distinguishable from siblings such as find_symbol, tests_for, or dead_code, which return different things about a symbol.

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?

"Use before editing a function" gives an explicit triggering context for invoking the tool. It does not name alternative tools or state when not to use it (e.g. for direct callers only), so it falls short of full when/when-not/alternatives guidance.

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