Skip to main content
Glama

dq_dbt_lineage

Read-onlyIdempotent

Walk dbt lineage from a node to mark upstream and downstream nodes with failing tests, revealing break origins and affected dashboards.

Instructions

Walk dbt lineage from a node, marking every upstream/downstream node that has failing tests.

Upstream answers "where did this break?"; downstream answers "what does this break?", including exposures (dashboards) that would show wrong numbers.

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": {
      "node": "<node>"
    },
    "name": "dq_dbt_lineage"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeYesModel, source ('source_name.table'), or any unique_id.
depthNo
directionNoboth

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds useful behavior beyond that: results are annotated with failing-test status and downstream traversal reaches exposures/dashboards. It says nothing about traversal cost, truncation, or what happens at the depth limit.

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?

Three short sentences, front-loaded with the core action, then the interpretive frame for direction. No filler; every sentence adds information an agent needs.

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?

With an output schema present and rich annotations, the description needn't explain return values, and it correctly focuses on the traversal semantics. The one gap is the undocumented 'depth' parameter, which matters for a graph walk that could otherwise expand unboundedly.

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 only 33% -- 'node' is documented but 'depth' is not mentioned anywhere in the description. The description does compensate partially by explaining what upstream vs downstream mean for the 'direction' parameter, but leaves depth semantics entirely to the schema.

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?

States a specific verb and resource ('Walk dbt lineage from a node') plus the defining behavior: marking upstream/downstream nodes that have failing tests. It is clearly distinct from the sibling test-result tools, though it never names an alternative to route against.

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?

The framing questions ('where did this break?' for upstream, 'what does this break?' for downstream) give clear situational context for choosing a direction. It stops short of explicit when-not-to-use guidance or naming a sibling like dq_dbt_test_results for a flat failure list.

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