Skip to main content
Glama

trace_path

Trace callers, callees, data flow, or cross-service paths through a code graph to analyze dependencies and impact.

Instructions

Trace paths through the code graph. Modes: calls (callers/callees), data_flow (value propagation with args at each hop), cross_service (through HTTP/async Route nodes). Use INSTEAD OF grep for callers, dependencies, impact analysis, or data flow tracing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
function_nameYes
projectYes
directionNoboth
depthNo
modeNocalls: follow CALLS edges. data_flow: follow CALLS+DATA_FLOWS with arg expressions. cross_service: follow HTTP_CALLS+ASYNC_CALLS+DATA_FLOWS through Routes.calls
parameter_nameNoFor data_flow mode: scope trace to a specific parameter name
edge_typesNo
risk_labelsNoAdd risk classification (CRITICAL/HIGH/MEDIUM/LOW) based on hop distance
include_testsNoInclude test files in results. When false (default), test files are filtered out. When true, test nodes are included with is_test=true marker.
Behavior3/5

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

No annotations are provided, so the description must convey behavioral traits. It explains the three modes and their focus (e.g., data_flow includes arg expressions, cross_service uses Route nodes). However, it does not disclose performance characteristics, rate limits, or any side effects beyond the graph traversal.

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 description is extremely concise: two sentences. The first sentence defines the purpose, and the second provides usage guidance and mode details. Every part is essential.

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?

With 9 parameters, no output schema, and no annotations, the description is insufficient. It does not specify output format, how direction affects results, or how edge_types is used. Given the complexity, more detail is needed for complete understanding.

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 only 44%, and the description does not elaborate on parameters beyond the modes. For example, it doesn't explain 'direction', 'depth', or 'edge_types' in the description, leaving the agent to rely solely on the sparse schema. The description should add more context for low-coverage parameters.

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 clearly states the tool's purpose: 'Trace paths through the code graph'. It lists three modes (calls, data_flow, cross_service) and explicitly distinguishes from grep, making the purpose unambiguous.

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?

The description explicitly says 'Use INSTEAD OF grep for callers, dependencies, impact analysis, or data flow tracing', providing clear when-to-use guidance. However, it doesn't compare against sibling tools like search_graph or get_architecture.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DeusData/codebase-memory-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server