Skip to main content
Glama

Explain the path between two metrics

explain_path
Read-onlyIdempotent

Trace how a change in one metric, entity, or concept reaches another via forward graph paths, explaining edge type, attenuation, direction, and path score; validate candidate drivers.

Instructions

How a movement in one graph node reaches another: up to 5 chains of edges followed forward from from to to, shortest first, then by highest score. Each step gives the edge type, its classification (metric_signal, structural, lifecycle, behavioral, assignment or generative), its attenuation and whether it inverts direction; each path gives its score and the direction the target moves when the source rises. A baseline edge (MRR into NRR) can only start a path. Names resolve as in get_relationships, so entities and concepts work too. No path means no forward chain within maxDepth: try the reverse. Use it on a candidate from infer_drivers.

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": "explain_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget node, in the same forms as from (e.g. 'NRR')
fromYesStarting node: a metric name, abbreviation or graph id, or an entity or concept (e.g. 'Health Score', 'customer')
maxDepthNoMaximum chain length in edges, 1 to 8 (default 6)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/closed-world annotations, the description discloses result ordering (shortest first, then highest score), a hard cap of 5 chains, the step-level payload (edge type, classification taxonomy, attenuation, inversion flag), the path-level payload (score and target movement direction), and a non-obvious constraint that a baseline edge such as MRR→NRR can only start a path. These are behavioral traits the agent could not infer from annotations.

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 key semantics (forward chains, shortest-first ordering, cap of 5) are front-loaded in the first sentence, and later sentences carry distinct information rather than restating. It is densely packed — the classification list and edge rules sit in one long sentence — which costs a little readability but no sentence is wasted.

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?

There is no output schema, and the description compensates fully by describing both the per-step and per-path return fields, including direction of target movement. For a read-only traversal tool with two required string params, nothing an agent needs in order to call and interpret it correctly is missing.

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 coverage is 100%, so the schema already documents all three parameters including maxDepth bounds and the accepted node forms. The description adds only a cross-reference that names resolve as in get_relationships and that entities and concepts work, plus the consequence of maxDepth being exceeded — useful but marginal against an already-complete schema.

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 opens with a specific verb+resource: explaining how a movement in one graph node reaches another, enumerating up to 5 forward edge chains. It distinguishes itself from siblings by referencing get_relationships (name resolution) and infer_drivers (where to source candidates), so an agent can place it without opening another schema.

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

Usage Guidelines4/5

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

It gives a concrete entry point ('Use it on a candidate from infer_drivers') and a failure-handling rule ('No path means no forward chain within maxDepth: try the reverse'). What it lacks is an explicit statement of when to prefer get_relationships or another sibling instead, so usage context is clear but not exhaustive.

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