Skip to main content
Glama
scipq-mcp
by gdressino

path

Read-onlyIdempotent

Find the shortest call chains between two Java symbols, including the lines of each call, to trace how one method reaches another.

Instructions

Shortest call chains from one symbol to another, with the lines of each call.

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": {
      "source": "<source>",
      "target": "<target>"
    },
    "name": "path"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax paths
sourceYesWhere the chain starts (a caller)
targetYesWhere it ends (the callee)
max_depthNo
project_rootNoCheckout or worktree to query (any directory in it); default: where the server started

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds one useful behavioral detail beyond that: results include the source lines of each call. It does not state what happens when no path exists, how depth limits affect results, or the cost of traversal.

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?

A single front-loaded sentence with no filler; the key noun phrase and the output content are both up front. It is efficient, though verging on under-specified rather than deliberately compact.

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?

With five parameters, two required, and no output schema, the description should explain the shape of a path result and the empty-result case. It gives only a partial hint ('with the lines of each call'), leaving the agent to discover the return structure by calling it.

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 description coverage is 80%, so source, target, project_root and limit are already documented in the schema. The description only restates the source/target relationship and adds nothing about max_depth semantics (e.g. that it bounds chain length) or how limit interacts with path ranking. Baseline 3 is appropriate when the schema carries most of the load.

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 names a specific operation on a specific resource: shortest call chains between two symbols, plus the source lines of each call. An agent can tell this apart from single-hop siblings like callers/callees or symbol lookups. It stops short of explicitly naming those siblings as alternatives, so it is clear but not fully differentiated.

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 when-to-use guidance and no exclusions. Nothing tells the agent to prefer this over callers, callees, or impact when tracing a multi-step path, nor what conditions (e.g. same-project symbols, indexed code) make the tool applicable.

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