Skip to main content
Glama
nickjoven
by nickjoven

callgraph

Explore a function's call hierarchy by mapping callees or callers with breadth-first traversal, depth control, and node limits.

Instructions

Breadth-first call graph around a function. direction: callees | callers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addrYes
buildNo
depthNo
directionNocallees
max_nodesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses the traversal strategy (breadth-first) and the two traversal directions, which is useful, but says nothing about cost, size limits despite a max_nodes default of 150, or what a call graph result looks like. Significant gaps for a graph-expansion tool.

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?

Two short fragments, front-loaded with the core operation and the key enum-like choice. Efficient, though the telegram style (missing articles/verbs) costs a little readability without adding information.

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

Completeness2/5

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

For a 5-parameter tool with zero schema description coverage, no annotations, and no output schema, this definition is far too thin. Depth, build, and max_nodes semantics and the notion of traversal limits are all left for the agent to guess.

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

Parameters2/5

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

Schema description coverage is 0% across 5 parameters, so the description must compensate and largely does not. It only clarifies the direction values (callees/callers) and implicitly the addr target; build, depth, and max_nodes are entirely undocumented anywhere.

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?

States a specific operation (breadth-first call graph) scoped to a function, which is a distinct resource from siblings like xrefs_to or function_info. It stops short of naming those siblings or clarifying how the result differs from a plain cross-reference listing.

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?

Only hint at usage is the 'direction: callees | callers' note, which reads as parameter documentation rather than a when-to-use condition. No guidance on when to pick this over xrefs_to, function_info, or disassemble, and no prerequisites or exclusions.

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