Skip to main content
Glama

dq_dbt_test_detail

Read-onlyIdempotent

Retrieve full details of a dbt test by name or unique_id: its definition, config (severity, where), the model it tests, and the compiled SQL that returns the failing rows.

Instructions

Everything needed to explain one dbt test: its definition, config (severity, where), the model it tests, and the compiled SQL that returns the failing rows.

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": {
      "test": "<test>"
    },
    "name": "dq_dbt_test_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
testYesTest name or unique_id from dq_dbt_test_results.

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so safety is fully covered. The description adds scope context by spelling out the payload (config fields like severity and where, the tested model, and the compiled SQL), but it offers nothing on error behavior for an unknown test name or on payload size.

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?

A single sentence with the resource and its returned contents front-loaded, and no filler. It is slightly dense with the parenthetical config examples, but every clause earns its place by defining what 'detail' means.

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 one fully documented parameter, complete safety annotations, and an output schema that carries the return shape, the description needs only to justify selection and set expectations — which it does. It stops just short of 5 because it omits the failure mode for an unresolved test identifier.

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% and the single parameter already documents accepting a test name or unique_id sourced from dq_dbt_test_results. The description adds no format hints, syntax, or identifier resolution rules beyond what the schema provides, so baseline 3 applies.

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?

The description states a specific verb and resource — retrieve the full detail of one dbt test — and enumerates what that detail comprises (definition, config, model, compiled SQL). It implicitly contrasts with listing test results by emphasizing 'one dbt test', though it never names dq_dbt_test_results as the companion tool.

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?

Usage is only implied: the phrasing 'explain one dbt test' signals a drill-down after seeing results, but there is no explicit when-to-use, when-not-to-use, or alternative named in the description. The connection to dq_dbt_test_results appears only in the parameter schema, not in the description itself.

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