Skip to main content
Glama

find_call_path

Find the shortest call paths between two functions in a C/C++ codebase using breadth-first search. Returns up to 5 paths with depth and function chain.

Instructions

Find call paths between two functions via BFS in the call graph.

Returns up to 5 shortest paths, each with depth (edge count) and chain (e.g. "main → app_run → modem_init").

Requires refs indexed (fw-context index --refs).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
from_nameYesStarting symbol for path search.
to_nameYesTarget symbol to find path to.
project_rootNoProject root. Auto-detected if omitted.
max_depthNoMaximum BFS depth for path search (default 10).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, but description discloses algorithm (BFS), output limits (5 paths), and requirement for indexed refs. No contradictions.

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?

Concise, two-sentence structure with key information front-loaded. Every sentence adds value.

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?

Output schema exists, so return values are partially explained. Description covers algorithm, output fields, and prerequisite. Adequate for a search tool.

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 100%, so baseline is 3. Description does not add parameter-specific details beyond what schema already provides.

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?

Description clearly states it finds call paths between two functions via BFS in the call graph, with output details. It distinguishes from siblings like find_callers and find_callees_recursive by focusing on path discovery.

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

Usage Guidelines3/5

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

Mentions prerequisite of indexed refs but does not provide explicit when-to-use or when-not-to-use guidance, nor direct comparisons to sibling tools.

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/turbyho/fw-context-mcp'

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