Skip to main content
Glama

gograph_path

Read-onlyIdempotent

Debug surprising call chains by finding the shortest path between two Go symbols via BFS on the call graph. Returns the symbol chain or indicates no connection.

Instructions

Find the shortest call chain between two symbols — BFS from from to to through the call graph. The MCP server checks freshness before this call and refreshes in the current requested analysis mode; precise and precise_fallback graphs retry CHA/SSA after source changes. Read-only; no side effects. WHEN TO USE: When confirming whether a handler can reach a utility function, debugging surprising call chains, or tracing execution flow between two non-adjacent symbols. NOT TO USE: For direct callers only (use gograph_callers); for all transitive upstream callers (use gograph_impact). RETURNS: JSON with from, to, found bool, and steps[] containing the symbol chain; found:false when no call path exists between the two symbols.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesThe target symbol name
fromYesThe starting symbol name
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds context about freshness checks, retry behavior for precise/precise_fallback modes, and explicitly states 'Read-only; no side effects.' No contradiction.

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?

The description is well-structured with sections, but slightly wordy. Could tighten the freshness check sentence without losing meaning. However, every sentence adds value, so it's still good.

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

Completeness5/5

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

Given the tool's complexity (graph search), annotations cover safety, and description covers return format (JSON with from, to, found, steps) and edge case (found:false). No output schema, but description compensates adequately. Complete context for agent.

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

Parameters4/5

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

Schema coverage is 100% with descriptions for 'from' and 'to'. The description adds value beyond schema by explaining the algorithm (BFS) and that it finds the shortest call chain, which informs the agent about the nature of the search.

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 purpose: 'Find the shortest call chain between two symbols — BFS from `from` to `to` through the call graph.' It distinguishes from siblings by naming gograph_callers and gograph_impact as alternatives, making the tool's unique role clear.

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

Usage Guidelines5/5

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

Explicit WHEN TO USE and NOT TO USE sections are provided, with concrete examples like debugging call chains and alternatives for direct callers (gograph_callers) and transitive upstream callers (gograph_impact). This gives agents clear decision criteria.

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/ozgurcd/gograph'

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