Skip to main content
Glama

dbt CLI MCP Server

dbt_test

Validate data quality and integrity by running tests in a dbt project. Ensures data transformations meet business rules and constraints for accurate analysis and reporting.

Instructions

Run dbt tests. An AI agent should use this tool when it needs to validate data quality and integrity by running tests defined in a dbt project. This helps ensure that data transformations meet expected business rules and constraints before being used for analysis or reporting.

Returns: Output from the dbt test command as text (this command does not support JSON output format)

Input Schema

NameRequiredDescriptionDefault
excludeNoModels to exclude
modelsNoSpecific models to test, using the dbt selection syntax
profiles_dirNoDirectory containing the profiles.yml file (defaults to project_dir if not specified)
project_dirNoABSOLUTE PATH to the directory containing the dbt project (e.g. '/Users/username/projects/dbt_project' not '.').
selectorNoNamed selector to use

Input Schema (JSON Schema)

{ "properties": { "exclude": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Models to exclude", "title": "Exclude" }, "models": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Specific models to test, using the dbt selection syntax", "title": "Models" }, "profiles_dir": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Directory containing the profiles.yml file (defaults to project_dir if not specified)", "title": "Profiles Dir" }, "project_dir": { "default": ".", "description": "ABSOLUTE PATH to the directory containing the dbt project (e.g. '/Users/username/projects/dbt_project' not '.')", "title": "Project Dir", "type": "string" }, "selector": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Named selector to use", "title": "Selector" } }, "title": "dbt_testArguments", "type": "object" }

Other Tools from dbt CLI MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MammothGrowth/dbt-cli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server