Skip to main content
Glama

neurocode_trace

Trace execution call paths between two functions, classes, or symbols across a codebase using in-memory Code Property Graph reachability.

Instructions

Trace execution call paths connecting two functions, classes, or symbols across the codebase in <1 ms using in-memory Code Property Graph reachability.

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": "<from>",
      "to": "<to>"
    },
    "name": "neurocode_trace"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget function or destination symbol name
fromYesStarting function or symbol name
repo_pathNoPath to repository root (default '.').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does add real information beyond the schema: the underlying mechanism is in-memory Code Property Graph reachability and the operation is claimed to run in under 1 ms. What is missing is the failure surface — what happens when a symbol is not found, ambiguous, or when the graph has not been built — as well as explicit confirmation that this is a non-mutating read.

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 that identifies the action, the two endpoints, the scope, and the mechanism with no filler. The 'in <1 ms' claim borders on marketing, but it does convey a performance expectation the agent can use when choosing between tools.

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?

For a read-only graph query with no output schema, the key missing element is what a 'trace' actually returns — a list of call paths, a node sequence, or a boolean reachability answer — which materially affects how the agent should interpret the result. Given full schema coverage and a simple three-parameter surface, the rest of the definition is adequate but the return-value and preconditions gap keeps it at minimum viable.

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 100%, so the schema already documents all three parameters, which sets the baseline at 3. The description adds a little meaning by clarifying that 'from' and 'to' may be functions, classes, or symbols rather than functions only, broadening the interpretation of the endpoint parameters, but it adds nothing about repo_path semantics or how symbol names are resolved.

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 uses a specific verb ('Trace') with a precise resource ('execution call paths connecting two functions, classes, or symbols'), so an agent can immediately tell this is a path-reachability query rather than a listing or mutation tool. It does not, however, name or distinguish itself from plausible siblings such as neurocode_impact or neurocode_slice, leaving routing to be inferred.

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?

Usage is only implied: 'connecting two functions' suggests a reachability question, but there is no explicit when-to-use statement, no when-not-to-use, and no mention of alternatives. It also omits prerequisites, such as whether the repository must already be indexed into the Code Property Graph before the call will succeed.

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