Skip to main content
Glama

root_cause

Trace any column, table, or dashboard upstream to raw sources and SQL transforms per hop to find where a number comes from or why a dashboard is wrong.

Instructions

Everything upstream of a node back to raw sources, with SQL transforms on each hop. Use for 'where does this number come from' / 'why is this dashboard wrong'.

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": {
      "ref": "<ref>"
    },
    "name": "root_cause"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYescolumn id 'table.column', table name, or exposure (dashboard) name
max_depthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses the return content (each hop carries its SQL transform) and that traversal runs to raw sources, but says nothing about truncation at max_depth, behavior on an unresolvable ref, or permissions on restricted sources.

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?

Two sentences, both earning their place: the first states what is returned, the second routes the agent by user intent. Front-loaded and free of filler.

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 only two parameters and no output schema, the definition covers the essentials of what the tool returns. It leaves gaps an agent would care about before calling: the depth cap's effect on completeness of results, and the failure mode for an unrecognized ref.

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 50%: the schema documents the accepted formats for ref (table.column, table name, exposure name) but max_depth has only a default with no meaning attached. The phrase "back to raw sources" hints that traversal is unbounded by default, yet never explains that max_depth caps the walk or what happens when the cap is hit.

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?

"Everything upstream of a node back to raw sources, with SQL transforms on each hop" names a specific resource (upstream lineage) and direction (upstream to sources), which an agent can distinguish from a downstream/impact tool without opening a schema. It stops short of naming any sibling explicitly, so differentiation is inferred rather than stated.

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?

The description gives two concrete triggering questions ("where does this number come from", "why is this dashboard wrong"), which is real usage guidance. It offers no when-not-to-use condition and no explicit contrast with sibling tools like impact or path, leaving the agent to infer that this is the upstream counterpart.

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