Skip to main content
Glama

Graph

graph

Trace function callers or callees to identify impact before refactoring. Use transitive mode to reveal full blast radius of shared code changes.

Instructions

Use to trace who calls a function (direction='callers'), what it calls (direction='callees'), or — with transitive=True — the full transitive blast radius of changing it. MUST use transitive=True before refactoring or editing a widely-shared symbol; grep can't show transitive impact.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
directionNo'callers' (who calls this) or 'callees' (what this calls)callers
max_depthNoMax traversal depth when transitive=True (default 10)
transitiveNoTrue = full transitive closure for change-impact analysis (MUST use before refactoring a shared symbol). Only valid with direction='callers'.
symbol_nameYesName of the function/symbol to trace

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden. It discloses the transitive blast-radius behavior and the critical refactoring caveat. It does not mention output format or potential cost, but the presence of an output schema and the concise warning make it adequately transparent.

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 focused sentences, each earning its place. The core behavior is stated first, then the critical warning about transitive mode, with no filler or repetition.

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?

The description covers the key decision drivers: what the tool does, how direction works, and when transitive mode is mandatory. Required parameters and defaults are already in the schema, and an output schema exists, so nothing essential is missing.

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 adds semantic value beyond the schema by framing transitive=True as necessary for change-impact analysis and explaining the conceptual blast radius. This extra context helps an agent choose parameter values correctly.

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 action — tracing a function's callers or callees — and clearly distinguishes the tool from generic search or symbol lookup siblings. The direction parameter is explained inline, making the tool's purpose unmistakable.

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?

It explicitly says when to use the tool, when to set transitive=True, and contrasts it with grep, which cannot reveal transitive impact. This gives an agent actionable decision rules for using it before refactoring.

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