Skip to main content
Glama

find_path

Trace the shortest resolved call chain between two symbols to determine how a source function eventually calls a target function in a Python codebase.

Instructions

Find a shortest resolved call chain between two symbols. Answers 'how does foo eventually end up calling bar?' in a single hop.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo_path": "<repo_path>",
      "source": "<source>",
      "target": "<target>"
    },
    "name": "find_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYes
targetYes
repo_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses only that the result is a 'shortest resolved' chain; it says nothing about traversal direction, how cycles or unresolvable symbols are handled, cost/limits on large repos, or whether it is a read-only operation. The word 'resolved' is never defined, leaving a key behavioral trait opaque.

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 tight sentences with the core purpose front-loaded and no filler. The phrase 'in a single hop' is slightly ambiguous in a tool whose output is a multi-step chain, but it plausibly means one tool call, so the waste is minimal.

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

Completeness3/5

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

An output schema exists, so return-value explanation is not required, and the purpose is adequately stated for a lookup tool. Still, with three undocumented required parameters and no annotations, an agent lacks enough detail on input format and edge-case behavior to invoke it confidently on the first try.

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%, so the description should compensate but largely does not. 'Source' and 'target' are only weakly implied to be symbols through the prose, and 'repo_path' — a required parameter — is never explained at all (path form, absolute vs relative, workspace root?).

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?

Names a specific verb and resource: find a shortest resolved call chain between two symbols, and the quoted question ('how does foo eventually end up calling bar?') pins down the exact operation. It is distinguishable from graph-traversal siblings like find_circular_deps or impact, though it never names them explicitly.

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?

The description implies when to use it by framing a concrete question the tool answers, which is useful contextual guidance. However, it gives no explicit conditions, prerequisites, or alternatives (e.g. when to prefer impact or query instead), so the agent must infer selection.

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