dbt
v1.0.7dbt MCP — manifest/run_results/sources/catalog parsing + DQ result tables (BigQuery/Postgres)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
dbt-list-models
List dbt models from manifest.json with filters (package, tag, materialized, schema, name search)
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | Max rows to return |
materialized | string | Filter by materialization (table | view | incremental | ...) |
package | string | Filter by dbt package name (e.g. project name) |
schema | string | Filter by destination schema/dataset |
search | string | Substring match against model name (case-insensitive) |
tag | string | Filter by tag (a model is included if it has this tag) |
dbt-get-model
Get a single dbt model: refs, sources, columns (with catalog types if available), attached tests, raw/compiled SQL
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
includeCompiledSql | boolean | Include compiled_code in response |
name | string | Model name (resolved if uniqueId not provided) |
uniqueId | string | dbt unique_id (e.g. 'model.us_dbt.users_dim') |
dbt-list-tests
List dbt tests (generic or singular) optionally filtered to a specific model
| Parameter | Type | Description |
|---|---|---|
attachedTo | string | Filter to tests attached to a specific model unique_id or name |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | |
search | string | Substring match against test name |
testKind | string |
dbt-get-test
Get a single dbt test: definition, parameters, attached models, latest run result
| Parameter | Type | Description |
|---|---|---|
uniqueId * | string | dbt unique_id of the test (e.g. 'test.proj.unique_users_id') |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
dbt-list-sources
List dbt sources from manifest.json with optional source-group / name filters
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | |
search | string | Substring match against source table name |
sourceName | string | Filter by source group name |
dbt-get-source
Get a single dbt source: freshness criteria, columns, latest freshness result from sources.json
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
sourceName | string | Source group name (with tableName) |
tableName | string | Source table name (with sourceName) |
uniqueId | string | dbt unique_id (e.g. 'source.proj.raw.users') |
dbt-list-exposures
List dbt exposures (downstream BI/ML/application consumers declared in YAML)
| Parameter | Type | Description |
|---|---|---|
exposureType | string | Filter by type (dashboard | application | ml | analysis | notebook) |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | |
search | string | Substring match against exposure name |
dbt-list-macros
List dbt macros from manifest.json with package / name filters
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | |
package | string | Filter by package name |
search | string | Substring match against macro name |
dbt-get-macro
Get a dbt macro: signature, raw SQL, and reverse-lookup of nodes that call it
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
name | string | Macro name (resolved if uniqueId not provided) |
uniqueId | string | dbt unique_id (e.g. 'macro.proj.my_macro') |
dbt-list-runs
List recent dbt invocations from run_results.json files in target/ and DBT_RUN_HISTORY_DIR
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer |
dbt-get-run-results
Get per-node results from a specific dbt invocation (or the latest run if invocationId omitted)
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
invocationId | string | invocation_id from a run; if omitted, the latest run_results.json in target/ is used |
limit | integer | |
status | string | Filter results by status (pass | error | fail | skipped | runtime error | success) |
dbt-failed-tests
Find tests that failed across the last N runs, grouped and ordered by chronic failure count
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
recentRuns | integer | Look at last N runs |
dbt-slow-models
Top N slowest models in a dbt run by execution_time, with bytes_processed when available
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
invocationId | string | Use a specific run; default is latest |
topN | integer |
dbt-coverage
Per-column test coverage for a dbt model (which columns have tests, table-level tests, coverage %)
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
name | string | Model name (resolved if uniqueId not provided) |
uniqueId | string | dbt unique_id |
dbt-graph
Walk dbt parent_map / child_map to return upstream and downstream nodes (model/source/test) up to a given depth
| Parameter | Type | Description |
|---|---|---|
downstreamDepth | integer | |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
name | string | Model name (resolved if uniqueId not provided) |
uniqueId | string | dbt unique_id |
upstreamDepth | integer |
freshness-status
Cross-reference dbt source freshness criteria with sources.json results in a single 'is anything stale right now?' answer.
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
failingOnly | boolean | Only return sources where freshness is warn/error |
incident-context
Single asset deep-dive: dbt definition + recent test failures + DQ checks for the dataset. Designed to anchor an LLM-driven incident triage.
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
modelName | string | dbt model name to anchor on (provide modelName OR sourceFqn) |
sinceHours | integer | |
sourceFqn | string | 'source_name.table_name' to anchor on a source instead of a model |
dbt-sla-status
Compare latest dbt run test pass rate and source freshness pass rate against DBT_SLA_CONFIG_PATH thresholds (dbt_sla.test_pass_pct / freshness_pass_pct). Returns per-axis passPct/target/meeting plus caveats when SLA fields or artifacts are missing.
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
dq-list-checks
List recent rows from DQ_RESULTS_TABLE filtered by dataset / status / type / time window
| Parameter | Type | Description |
|---|---|---|
dataset | string | Filter by dataset / source |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer | |
sinceHours | integer | |
status | string | Filter by status |
type | string | Filter by check type (dbt_test | freshness | anomaly | reconciliation | ...) |
dq-get-check-history
Time-series of one check_name's status across the last N days
| Parameter | Type | Description |
|---|---|---|
checkName * | string | Generic schema: exact check_name. us-all schema: 'check_type:target_name' (concat) |
days | integer | |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
limit | integer |
dq-failed-checks-by-dataset
Group failing checks by dataset across a recent window with the latest 5 failures per dataset
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
sinceHours | integer | |
topN | integer |
dq-score-trend
Time-series of the 4-axis DQ score (completeness / freshness / validity / anomaly_free) plus overall_score from DQ_SCORE_TABLE
| Parameter | Type | Description |
|---|---|---|
days | integer | |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
scope | string | Scope filter (only honored when DQ_SCHEMA=generic) |
dq-tier-status
Compare today's overall_score per scope against Tier SLA targets (defaults Tier 1 99.5 / 2 99.0 / 3 95.0; override via DBT_SLA_CONFIG_PATH yaml or DQ_TIER1_TARGET_PCT) and report meeting vs missing counts
| Parameter | Type | Description |
|---|---|---|
date | string | ISO date (YYYY-MM-DD) to check, default = today |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
fallbackMaxDays | integer | us-all schema only: when the cutoff date has no row, walk back to the most recent prior row only if it is within this many days. Beyond the limit, score/meeting are returned null with a stale note ins… |
dq-tier-by-source
Per-tier rollup computed from quality_checks grouped by source. Reads source-to-tier mapping from dbt sources.yml meta.tier and tier targets from DBT_SLA_CONFIG_PATH (falls back to defaults). Reports per-source pass rate, meeting/missing per tier, and untiered sources as caveats.
| Parameter | Type | Description |
|---|---|---|
date | string | ISO date (YYYY-MM-DD) for the rollup, default = today |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
mode | string | How to roll up. 'source' (default) groups by the dataset/source column and looks up tier from each source group's first table-level meta.tier. 'table' groups by table_name (assumed format '<source_gro… |
sinceHours | integer | Alternative window: rollup over the last N hours instead of a single date |
sourceFilter | string | Optional pre-filter on the dataset/source column. Useful in mode='table' when only some source rows have target_name in '<source_group>.<table>' format (e.g. sourceFilter='bq' to keep only the BigQuer… |
failed-tests-summary
Aggregated 24h-ish view: dbt failed tests + DQ checks failures grouped by dataset + most recent failing rows. Replaces 3+ tool calls (dbt-failed-tests + dq-failed-checks-by-dataset + dq-list-checks).
| Parameter | Type | Description |
|---|---|---|
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
recentRuns | integer | Look at last N dbt runs |
sinceHours | integer | Recent window for DQ checks |
dq-score-snapshot
Aggregated 4-axis score trend + today's Tier compliance + most recent failing checks. Combines dq-score-trend + dq-tier-status + dq-list-checks(fail).
| Parameter | Type | Description |
|---|---|---|
days | integer | |
extractFields | string | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response toke… |
includeFailing | boolean | Also include the most recent failing checks |
search-tools
Discover available dbt MCP tools by natural language query across dbt / quality / meta categories.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural language query. Discover available dbt MCP tools across dbt artifact / DQ result table / meta categories — call this first to find the right tool. |
category | string | Restrict search to a specific category |
limit | number | Max results (default 20) |