Skip to main content
Glama

dq_dbt_test_results

Read-onlyIdempotent

Summarize the last dbt test or build run from target/run_results.json, showing status counts and failing tests with type, column, model, and failure count, worst first.

Instructions

Summarise the last dbt test/build run from target/run_results.json: counts by status, and each failing test with its type, column, tested model and failure count, worst first.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dq_dbt_test_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
statusesNoWhich test statuses to return.

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, idempotentHint, non-destructive and closed-world, so safety is covered. The description does contribute real behavior beyond them: it discloses the exact data source (target/run_results.json), that results are counts plus failing tests, and that ordering is worst first. It does not say what happens when no run_results.json exists or how fresh the file is.

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?

One dense sentence, front-loaded with the source and followed by the returned fields via a colon, with zero filler. It reads as slightly run-on because five output fields are chained together, but nothing is redundant.

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 the description need not explain return shape, and annotations carry the safety profile, so the burden is on scope and inputs — both largely met. The remaining gap is the undocumented limit parameter and unstated behavior when the run results file is absent or stale.

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 50%: statuses is documented in the schema while limit is not, so the description's implied 'each failing test ... worst first' loosely justifies a cap but never explains limit's interaction with ordering or the default of 50. With half the schema documented, a baseline 3 is right; the description adds framing but no syntax or defaults of its own.

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 (summarise) and a specific resource (the last dbt test/build run from target/run_results.json), plus the exact contents: per-status counts and failing tests with type, column, tested model and failure count, ordered worst first. That clearly separates it from the detail-level sibling, though it never names dq_dbt_test_detail as the alternative.

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 by the scope phrase 'last dbt test/build run' and by the aggregation focus; there is no explicit when-to-use statement, no when-not-to-use, and no named alternative such as dq_dbt_test_detail for drilling into individual failures. An agent can infer the role, but must do the routing work itself.

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