dbt

v1.0.7
io.github.us-all/dbt Checked 2 hours ago Published 5 months ago

dbt 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)

ParameterTypeDescription
extractFieldsstringComma-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…
limitintegerMax rows to return
materializedstringFilter by materialization (table | view | incremental | ...)
packagestringFilter by dbt package name (e.g. project name)
schemastringFilter by destination schema/dataset
searchstringSubstring match against model name (case-insensitive)
tagstringFilter 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

ParameterTypeDescription
extractFieldsstringComma-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…
includeCompiledSqlbooleanInclude compiled_code in response
namestringModel name (resolved if uniqueId not provided)
uniqueIdstringdbt unique_id (e.g. 'model.us_dbt.users_dim')

dbt-list-tests

List dbt tests (generic or singular) optionally filtered to a specific model

ParameterTypeDescription
attachedTostringFilter to tests attached to a specific model unique_id or name
extractFieldsstringComma-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…
limitinteger
searchstringSubstring match against test name
testKindstring

dbt-get-test

Get a single dbt test: definition, parameters, attached models, latest run result

ParameterTypeDescription
uniqueId *stringdbt unique_id of the test (e.g. 'test.proj.unique_users_id')
extractFieldsstringComma-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

ParameterTypeDescription
extractFieldsstringComma-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…
limitinteger
searchstringSubstring match against source table name
sourceNamestringFilter by source group name

dbt-get-source

Get a single dbt source: freshness criteria, columns, latest freshness result from sources.json

ParameterTypeDescription
extractFieldsstringComma-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…
sourceNamestringSource group name (with tableName)
tableNamestringSource table name (with sourceName)
uniqueIdstringdbt unique_id (e.g. 'source.proj.raw.users')

dbt-list-exposures

List dbt exposures (downstream BI/ML/application consumers declared in YAML)

ParameterTypeDescription
exposureTypestringFilter by type (dashboard | application | ml | analysis | notebook)
extractFieldsstringComma-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…
limitinteger
searchstringSubstring match against exposure name

dbt-list-macros

List dbt macros from manifest.json with package / name filters

ParameterTypeDescription
extractFieldsstringComma-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…
limitinteger
packagestringFilter by package name
searchstringSubstring match against macro name

dbt-get-macro

Get a dbt macro: signature, raw SQL, and reverse-lookup of nodes that call it

ParameterTypeDescription
extractFieldsstringComma-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…
namestringMacro name (resolved if uniqueId not provided)
uniqueIdstringdbt 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

ParameterTypeDescription
extractFieldsstringComma-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…
limitinteger

dbt-get-run-results

Get per-node results from a specific dbt invocation (or the latest run if invocationId omitted)

ParameterTypeDescription
extractFieldsstringComma-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…
invocationIdstringinvocation_id from a run; if omitted, the latest run_results.json in target/ is used
limitinteger
statusstringFilter 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

ParameterTypeDescription
extractFieldsstringComma-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…
recentRunsintegerLook at last N runs

dbt-slow-models

Top N slowest models in a dbt run by execution_time, with bytes_processed when available

ParameterTypeDescription
extractFieldsstringComma-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…
invocationIdstringUse a specific run; default is latest
topNinteger

dbt-coverage

Per-column test coverage for a dbt model (which columns have tests, table-level tests, coverage %)

ParameterTypeDescription
extractFieldsstringComma-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…
namestringModel name (resolved if uniqueId not provided)
uniqueIdstringdbt unique_id

dbt-graph

Walk dbt parent_map / child_map to return upstream and downstream nodes (model/source/test) up to a given depth

ParameterTypeDescription
downstreamDepthinteger
extractFieldsstringComma-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…
namestringModel name (resolved if uniqueId not provided)
uniqueIdstringdbt unique_id
upstreamDepthinteger

freshness-status

Cross-reference dbt source freshness criteria with sources.json results in a single 'is anything stale right now?' answer.

ParameterTypeDescription
extractFieldsstringComma-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…
failingOnlybooleanOnly 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.

ParameterTypeDescription
extractFieldsstringComma-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…
modelNamestringdbt model name to anchor on (provide modelName OR sourceFqn)
sinceHoursinteger
sourceFqnstring'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.

ParameterTypeDescription
extractFieldsstringComma-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

ParameterTypeDescription
datasetstringFilter by dataset / source
extractFieldsstringComma-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…
limitinteger
sinceHoursinteger
statusstringFilter by status
typestringFilter 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

ParameterTypeDescription
checkName *stringGeneric schema: exact check_name. us-all schema: 'check_type:target_name' (concat)
daysinteger
extractFieldsstringComma-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…
limitinteger

dq-failed-checks-by-dataset

Group failing checks by dataset across a recent window with the latest 5 failures per dataset

ParameterTypeDescription
extractFieldsstringComma-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…
sinceHoursinteger
topNinteger

dq-score-trend

Time-series of the 4-axis DQ score (completeness / freshness / validity / anomaly_free) plus overall_score from DQ_SCORE_TABLE

ParameterTypeDescription
daysinteger
extractFieldsstringComma-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…
scopestringScope 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

ParameterTypeDescription
datestringISO date (YYYY-MM-DD) to check, default = today
extractFieldsstringComma-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…
fallbackMaxDaysintegerus-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.

ParameterTypeDescription
datestringISO date (YYYY-MM-DD) for the rollup, default = today
extractFieldsstringComma-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…
modestringHow 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…
sinceHoursintegerAlternative window: rollup over the last N hours instead of a single date
sourceFilterstringOptional 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).

ParameterTypeDescription
extractFieldsstringComma-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…
recentRunsintegerLook at last N dbt runs
sinceHoursintegerRecent 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).

ParameterTypeDescription
daysinteger
extractFieldsstringComma-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…
includeFailingbooleanAlso include the most recent failing checks

search-tools

Discover available dbt MCP tools by natural language query across dbt / quality / meta categories.

ParameterTypeDescription
query *stringNatural language query. Discover available dbt MCP tools across dbt artifact / DQ result table / meta categories — call this first to find the right tool.
categorystringRestrict search to a specific category
limitnumberMax results (default 20)