Skip to main content
Glama

trace_path

Read-onlyIdempotent

Find how one code entity reaches another as ordered hops when a question names two things. Pass from and to as names, ids, or name@file to inspect routes and gaps.

Instructions

Find how one entity reaches another, as ordered hops. Call it when your question names TWO things. from and to take a name, an id, or name@file. Read found and gap before concluding A never reaches B. One endpoint? Use trace_data_flow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesTarget end, in the same forms.
fromYesSource end: entity UUID, exact name, or name@file to pin one of two same-named entities.
limitNoRoutes returned, shortest first (default 3, ceiling 25). See `routes_total`.
to_fileNoDeprecated, answered through 0.7.16; pass the entity id in `to`. Pins `to` by file.
directionNo`forward`: from reaches to. `reverse`: the other way. `either` (default) tries both.either
from_fileNoPin `from` to the entity of that name in this file. Same as the name@file spelling.
max_charsNoSerialized characters this response may occupy; what was cut is named in `elisions`.
max_depthNoHops between the two ends (default 6, ceiling 12). Containment hops are not counted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.16

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely non-obvious behavioral guidance — 'Read `found` and `gap` before concluding A never reaches B' — warning that a negative path result may be an artifact. It stops short of describing truncation semantics beyond naming `elisions`, but adds real value over the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, front-loaded with the purpose, then the trigger, the argument forms, the output caveat, and the routing alternative. Nothing is padded and the reader gets the essentials first.

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

Completeness4/5

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

For a complex 8-parameter graph traversal with no output schema, the description covers purpose, triggers, alternatives, and how to interpret the key response fields (`found`, `gap`). It names truncation signals (`elisions`) but does not itself explain the response shape, leaving a small gap for a tool with no output schema.

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 eight parameters including the enum direction, file-pinning, depth and char limits. The description's restatement that `from`/`to` take 'a name, an id, or name@file' mirrors the schema rather than extending it, so this lands at the high-coverage baseline.

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?

States a specific verb and resource: 'Find how one entity reaches another, as ordered hops.' It also discriminates from the nearest sibling by naming trace_data_flow for the single-endpoint case, so an agent can choose between them without opening either schema.

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?

Gives an explicit trigger ('when your question names TWO things') and an explicit exclusion with the alternative to use instead ('One endpoint? Use trace_data_flow'). The when/when-not/alternative triad is fully present.

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