Skip to main content
Glama

Infer a metric's drivers

infer_drivers
Read-onlyIdempotent

Rank the upstream metrics that could explain an observed movement in a metric. Walks the GASP relationship graph backwards from the metric up to maxDepth edges and returns up to 25 candidates, each with the direction it would have moved, a score and its path to the metric. Direction flips across a reduces edge and across an input with negative polarity (a denominator or subtracted term), marked ↓ in the path. A baseline input (read at period start, as NRR reads MRR) is listed as a candidate but not walked through, since its own drivers cannot move the metric within the period. Scores are products of edge attenuations: they rank structural links and say nothing about magnitude. Works on metric nodes only. Follow up with explain_path for the chain behind a candidate or coverage_gap to check you track it; for 'what if' simulation use the TWIN Modifier at https://gaspwiki.com/v1/twin-modifier.

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": {
      "metric": "<metric>",
      "direction": "<direction>"
    },
    "name": "infer_drivers"
  }
}

Input Schema

NameRequiredDescriptionDefault
metricYesMetric name, abbreviation or graph id (e.g. 'ARR', 'Net Revenue Retention', 'nrr'), resolved as in lookup_metric. It must be a metric in the relationship graph.
maxDepthNoMaximum number of edges to walk back, 1 to 8 (default 6)
directionYesObserved movement of the metric: up or down

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover safety (readOnly, idempotent, non-destructive, closed-world), so the description carries the real burden and does: the 25-candidate cap, the maxDepth walk limit, direction flipping across reduces edges and negative-polarity inputs, the baseline-input exception, and the crucial caveat that scores rank structural links, not magnitude. That last point prevents a serious misreading of the output.

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?

Front-loaded with the core action, then constraints, then alternatives. It is dense and long for one paragraph, but nearly every clause carries non-obvious information; only the external URL reference feels slightly out of place.

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?

For a graph-walk with no output schema, the description still describes what comes back (candidates with direction, score, and path), the limits on that return, and where to go next. Nothing an agent needs to call it correctly appears missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: maxDepth is described as how far the graph is walked, and direction is tied to observable output effects ('direction flips ... marked ↓ in the path'). The 'must be a metric in the relationship graph' constraint on metric reinforces the schema note.

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 and resource: 'Rank the upstream metrics that could explain an observed movement in a metric.' It immediately distinguishes itself from siblings by naming explain_path, coverage_gap and the TWIN Modifier as different jobs.

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?

It explicitly routes follow-ups: explain_path 'for the chain behind a candidate', coverage_gap 'to check you track it', and the TWIN Modifier 'for what if simulation'. It also states scope with 'Works on metric nodes only', so an agent knows when not to reach for it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.