Skip to main content
Glama
surgical-context-mcp

surgical-context-mcp

by erayerturk

find_flow

Finds the shortest high-confidence call, signal, or event path between two symbols to trace code flow and identify dependencies.

Instructions

Find shortest high-confidence call/signal/event path between from_symbol and to_symbol.

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": {
      "from_symbol": "<from_symbol>",
      "to_symbol": "<to_symbol>"
    },
    "name": "find_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_depthNo
to_symbolYes
from_symbolYes
project_pathNo
output_formatNomarkdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that the path is shortest and high-confidence, but does not explain what confidence means, whether the operation is read-only, how max_depth affects results, or what output_format controls. Output schema existence reduces the need to describe return values, but important operational context is still missing.

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 a single well-formed sentence that front-loads the core action and resource. It is efficient, though its brevity contributes to the gaps in guidance and parameter semantics rather than being optimally informative.

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?

This is a graph path-finding tool with five parameters, no annotations, and no schema descriptions. The description is too thin for that complexity: it omits max_depth behavior, confidence threshold meaning, project_path scoping, and output_format options. The output schema covers return shape, but invocation-critical context is incomplete.

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 must compensate for all five parameters. It identifies from_symbol and to_symbol as the path endpoints, but says nothing about max_depth, project_path, or output_format. Three of five parameters remain semantically undocumented.

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?

The description states a specific verb and resource: find the shortest high-confidence call/signal/event path between two named symbols. This is clear enough to distinguish it from sibling tools like get_symbol_impact or search_symbols. It does not explicitly name when another sibling is preferred, but the purpose itself is unambiguous.

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?

There is no explicit guidance on when to use this tool versus alternatives such as get_symbol_impact or get_architecture_map. The phrase 'shortest high-confidence' implies a path-query scenario, but no preconditions, exclusions, or alternative routing are stated.

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