Skip to main content
Glama

dbt test generation

submit_dbt_test_generation
Idempotent

Parse a dbt model's SQL and generate a schema.yml with not_null tests for every selected column. When a dbt model needs baseline tests generated from its SQL. Do not choose this when the model uses jinja or macros a textual parse cannot resolve. Example requests: Generate dbt tests for this model. | Write a schema.yml for my dbt model. | Add not_null tests to this dbt model's columns.

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": {
      "inputs": "<inputs>",
      "authorized_by": "<authorized_by>"
    },
    "name": "submit_dbt_test_generation"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYes
quote_idNoThe quote_id returned by POST /v1/jobs. Required to authorize a priced capability; the service rejects a priced job that does not name the quote it issued.
authorized_byYesIdentifier of the human or agent authorizing this job.
accepted_priceNoThe amount accepted, exactly as quoted (for example "5.00" or 5). Checked against the stored quote, so a price that moved between quote and authorize is refused rather than silently absorbed. Optional, but sent to make the acceptance explicit.

Output Schema

NameRequiredDescriptionDefault
quoteNo
stateYes
job_idYes
artifactsNo
access_tokenNoPer-job credential. Present it as the X-Job-Token header to read the job or list it. Keep it; it is the only credential for this job.
verificationNoIndependent verification. verification.ok = false means the job failed, not a partial success.
capability_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description adds useful behavior in the textual-parse limitation, which explains a real failure mode. However, it never mentions that this is a priced capability requiring a quote_id and accepted_price (visible only in the schema), which is the single most consequential behavioral fact for an agent calling it.

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?

Purpose is front-loaded and the when/when-not pair follows in tight order. The three example requests partially restate the purpose sentence and the second sentence is a fragment, but neither is costly; every other sentence earns its place.

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?

This is a nested, four-parameter, priced job tool with an output schema, and the description covers only the parsing/generation semantics. An agent reading it would not learn that a quote must be obtained first or that agent-authored authorization is required, which are prerequisites for a successful call rather than return-value details. The description is otherwise accurate and sufficient on the transformation itself.

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 75%, so the baseline is 3. The description says tests are emitted for 'every selected column', but the input schema exposes no column-selection parameter, only model_sql and profiles — an ambiguity the description creates rather than resolves. It adds nothing about quote_id, accepted_price or authorized_by beyond what the schema already says.

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?

States a specific verb and resource ('Parse a dbt model's SQL and generate a schema.yml with not_null tests') and scopes the output to every selected column. No sibling tool covers dbt test generation, so the agent can distinguish it from the surrounding submit_* family without opening any schema.

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?

Explicitly gives both a positive trigger ('When a dbt model needs baseline tests generated from its SQL') and an exclusion ('Do not choose this when the model uses jinja or macros a textual parse cannot resolve'). It stops short of naming the alternative the agent should pick in the jinja case, which keeps it below a 5.

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.

Resources