Skip to main content
Glama

get_call_chain

Read-onlyIdempotent

Find the shortest call chain between two code symbols via BFS. Trace how one function calls another in the dependency graph.

Instructions

Shortest dependency path between two symbols (BFS through the dep graph).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelNoPer-hop verbosity: 0=full (source_preview), 1=sig+file, 2=minimal name+file+line. Default 2.
projectNoProject name/path (default: active).
to_nameYesTarget symbol name.
from_nameYesStarting symbol name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive, so the safety profile is covered. The description adds meaningful behavioral context by specifying BFS shortest-path semantics, but says nothing about result ordering, direction, or behavior when no path exists. Given the annotation coverage, a 3 is appropriate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no wasted words, stating the operation and the algorithm. It is efficient, though arguably terse enough that it could have afforded one more clause on when to use it.

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 100% schema coverage, no output schema, and simple flat parameters, the definition provides enough to invoke the tool correctly. The main gap is the absence of usage/routing guidance relative to the many dependency-analysis siblings.

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 description coverage is 100%, so all four parameters (from_name, to_name, project, level) are documented in the schema itself, including the level enum semantics. The description adds no parameter-level detail, so the baseline 3 applies.

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?

The description gives a specific resource ('dependency path between two symbols') and mechanism ('BFS through the dep graph'), which distinguishes it from siblings like get_dependencies and get_dependents that operate at a single level. It is clear what the tool computes, though it does not explicitly name an alternative for contrast.

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

Usage Guidelines2/5

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

There is no guidance on when to reach for this tool versus get_dependencies, get_dependents, get_change_impact, or find_symbol. No prerequisites or exclusions are stated; the agent must infer usage purely from the one-line purpose.

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