# Available tools

The dbt MCP server has access to many parts of the dbt experience related to development, deployment, and discovery. This page lists the tools available in the dbt MCP server and how to configure them.

## Supported tools by MCP server type

The following sections list every tool by category, along with which server type (local or remote) supports it.

| Tools                                                  | Local | Remote |
| ------------------------------------------------------ | ----- | ------ |
| [dbt commands](#dbt-commands)                          | ✅    | ❌     |
| [Semantic Layer (Semantic Layer API)](#semantic-layer) | ✅    | ✅     |
| [SQL](#sql)                                            | ✅    | ✅     |
| [Metadata Discovery (Discovery API)](#discovery)       | ✅    | ✅     |
| [Administrative API (Admin API)](#admin-api)           | ✅    | ✅     |
| [Codegen Tools](#dbt-codegen)                          | ✅    | ❌     |
| [dbt v2 Tools](#dbt-lsp)                               | ✅    | ✅     |
| [Product Docs Tools](#product-docs)                    | ✅    | ✅     |
| [MCP Server Metadata Tools](#mcp-server-metadata)      | ✅    | ✅     |

Note that access to the Discovery API and the Semantic Layer API is limited depending on your [plan type](https://www.getdbt.com/pricing).

Remote MCP tools can change without notice or a deprecation period. Refer to [Tool changes on the remote MCP server](#tool-changes-on-the-remote-mcp-server).

### Tools that require AI features

`text_to_sql` is the only tool that depends on [AI features](../platform/manage-dbt-ai.md) being enabled for your account.

If an admin turns AI features off, `text_to_sql` doesn't appear in the tool list for the remote MCP server. Every other tool keeps working. Turning off AI features doesn't disable remote MCP.

## dbt MCP server tool list

The following tool list is available for your MCP server and is auto-fetched from the [dbt MCP server README on GitHub](https://github.com/dbt-labs/dbt-mcp#tools) when the docs are built, so it stays in sync with each release.

### SQL

Tools for executing and generating SQL on dbt Platform infrastructure.

* `execute_sql`: Executes SQL on dbt Platform infrastructure with Semantic Layer support.
* `text_to_sql`: Generates SQL from natural language using project context.

### Semantic Layer

To learn more about the dbt Semantic Layer, click [here](https://docs.getdbt.com/docs/use-dbt-semantic-layer/dbt-sl).

* `get_dimension_values`: Gets distinct values for a dimension; option to scope to specific metrics.
* `get_dimensions`: Gets dimensions for specified metrics.
* `get_entities`: Gets entities for specified metrics.
* `get_metrics_compiled_sql`: Returns compiled SQL for metrics without executing the query.
* `list_metrics`: Retrieves all defined metrics.
* `list_saved_queries`: Retrieves all saved queries.
* `query_metrics`: Executes metric queries with filtering and grouping options.

### Discovery

To learn more about the dbt Discovery API, click [here](https://docs.getdbt.com/docs/dbt-cloud-apis/discovery-api).

* `get_all_macros`: Retrieves macros; option to filter by package or return package names only.
* `get_all_models`: Retrieves name and description of all models.
* `get_all_sources`: Gets all sources with freshness status; option to filter by source name.
* `get_exposure_details`: *(deprecated — use `get_node_details` instead)*
* `get_exposures`: Gets all exposures (downstream dashboards, apps, or analyses).
* `get_lineage`: Gets a bounded lineage graph with type, depth, and direction filtering.
* `get_macro_details`: *(deprecated — use `get_node_details` instead)*
* `get_mart_models`: Retrieves all mart models.
* `get_model_children`: *(deprecated — use `get_lineage` instead)*
* `get_model_details`: *(deprecated — use `get_node_details` instead)*
* `get_model_health`: Gets health signals: run status, test results, and upstream source freshness.
* `get_model_parents`: *(deprecated — use `get_lineage` instead)*
* `get_model_performance`: Gets execution history for a model; option to include test results.
* `get_node_details`: Gets full details for any dbt resource type (model, source, exposure, test, seed, snapshot, macro, semantic\_model).
* `get_related_models`: Finds similar models using semantic search.
* `get_seed_details`: *(deprecated — use `get_node_details` instead)*
* `get_semantic_model_details`: *(deprecated — use `get_node_details` instead)*
* `get_snapshot_details`: *(deprecated — use `get_node_details` instead)*
* `get_source_details`: *(deprecated — use `get_node_details` instead)*
* `get_test_details`: *(deprecated — use `get_node_details` instead)*
* `search`: \[Alpha] Searches for resources across the dbt project (not generally available).
* `search_public_mesh_models`: Finds public dbt Mesh models across projects and confirms producer identity so you can build a verified cross-project ref (multi-project configurations only).

### dbt CLI

Allowing your client to utilize dbt commands through the MCP tooling could modify your data models, sources, and warehouse objects. Proceed only if you trust the client and understand the potential impact.

* `build`: Executes models, tests, snapshots, and seeds in DAG order.
* `clone`: Clones selected nodes from the specified state to the target schema(s).
* `compile`: Generates executable SQL from models/tests/analyses; useful for validating Jinja logic.
* `docs`: Generates documentation for the dbt project.
* `get_lineage_dev`: Retrieves lineage from local manifest.json with type and depth filtering.
* `get_node_details_dev`: Retrieves node details from local manifest.json (models, seeds, snapshots, sources).
* `list`: Lists resources in the dbt project by type with selector support.
* `parse`: Parses and validates project files for syntax correctness.
* `run`: Executes models to materialize them in the database.
* `show`: Executes SQL against the database and returns results.
* `test`: Runs tests to validate data and model integrity.

### Admin API

To learn more about the dbt Administrative API, click [here](https://docs.getdbt.com/docs/dbt-cloud-apis/admin-cloud-api).

* `cancel_job_run`: Cancels a running job.
* `get_job_details`: Gets job configuration including triggers, schedule, and dbt commands.
* `get_job_run_artifacts`: Downloads a specific artifact from a job run; large artifacts return a guidance message to retry with a jq\_filter; supports jq filtering for targeted extraction.
* `get_job_run_details`: Gets run details including status, timing, steps, and artifacts.
* `get_job_run_error`: Gets error and/or warning details for a job run; option to include or show warnings only.
* `list_job_run_artifacts`: Lists available artifacts from a job run.
* `list_jobs`: Lists jobs in a dbt Platform account; option to filter by project or environment.
* `list_jobs_runs`: Lists job runs; option to filter by job, status, or order by field.
* `list_projects`: Lists all projects in the dbt Platform account.
* `retry_job_run`: Retries a failed job run.
* `trigger_job_run`: Triggers a job run; option to override git branch, schema, or other settings.

### dbt Codegen

These tools help automate boilerplate code generation for dbt project files.

* `generate_model_yaml`: Generates model YAML with columns; option to inherit upstream descriptions.
* `generate_source`: Generates source YAML by introspecting database schemas; option to include columns.
* `generate_staging_model`: Generates staging model SQL from a source table.

### dbt LSP

A set of tools that leverage the Fusion engine for advanced SQL compilation and column-level lineage analysis.

* `fusion.compile_sql`: Compiles SQL in project context via dbt Platform.
* `fusion.get_column_lineage`: Traces column-level lineage via dbt Platform.
* `get_column_lineage`: Traces column-level lineage locally (requires dbt-lsp via dbt Labs VSCE).

### Product Docs

Tools for searching and fetching content from the official dbt documentation at docs.getdbt.com.

* `get_product_doc_pages`: Fetches the full Markdown content of one or more docs.getdbt.com pages by path or URL.
* `search_product_docs`: Searches docs.getdbt.com for pages matching a query; returns titles, URLs, and descriptions ranked by relevance. Use get\_product\_doc\_pages to fetch full content.

### MCP Server Metadata

These tools provide information about the MCP server itself.

* `get_mcp_server_branch`: Returns the current git branch of the running dbt MCP server.
* `get_mcp_server_version`: Returns the current version of the dbt MCP server.

### Find jobs across project environments

You can find jobs outside production, including staging, CI, or UAT (user acceptance testing), without changing your MCP config. Use the `list_jobs` tool to list jobs. Use `trigger_job_run` to start a run.

By default, if your MCP config includes a production environment, `list_jobs` only returns jobs from that environment: `x-dbt-prod-environment-id` for token-based [remote MCP](./setup-remote-mcp.md), or `DBT_PROD_ENV_ID` for [self-hosted MCP](./setup-local-mcp.md). Refer to [How to find your dbt MCP IDs](./mcp-find-ids.md#dbt-prod-env-id) for details. If no production environment is configured, `list_jobs` can return jobs across the account. Staging, CI, or UAT jobs often don't appear when a production environment is set.

You can pass a `project_id` (from `list_projects`) to return jobs from every environment in that project.

Once you query your assistant, it will typically:

1. Look up your project ID with `list_projects` (if you don't already have it)
2. List the jobs with that `project_id`
3. Pick the UAT, staging, or CI job you requested
4. Start it with `trigger_job_run` and the job's ID

You don't have to call the tools yourself. Try a prompt like: "List jobs in this project, find the UAT, staging, or CI job, and trigger it."

## Tool changes on the remote MCP server

dbt MCP tools are generally built for AI agents, so their structure can change without notice or a deprecation period. Don't treat them as a contract.

* We aim not to remove existing features or rename tools, because some clients use tool names for auto-approve or allow/reject lists.
* If you need a frozen set of tools and inputs/outputs, we recommend pinning a version of the [self-hosted MCP server](./setup-local-mcp.md) and running it yourself. Refer to the [dbt-mcp examples](https://github.com/dbt-labs/dbt-mcp/tree/main/examples).

## FAQs

 What does execute\_sql do?

`execute_sql` lets your AI assistant run a SQL query against your data warehouse and read the results. It's part of the SQL toolset and runs on dbt platform, so you don't need dbt installed locally.

Here's what happens when your assistant calls it:

1. The assistant writes a SQL query and calls `execute_sql`.
2. The dbt MCP server forwards the request to dbt platform, along with your token, development environment ID, and user ID.
3. dbt platform compiles the SQL (including any Jinja, such as `ref()`) and runs it in your warehouse using your development credentials.
4. The results come back to your assistant as a table.

[![The AI assistant calls execute\_sql. The dbt MCP server forwards the request to dbt platform, which compiles the SQL, runs it in the warehouse with your development credentials, and returns the results to the assistant.](/img/docs/dbt-ai/mcp-execute-sql-flow.svg?v=2 "The AI assistant calls execute_sql. The dbt MCP server forwards the request to dbt platform, which compiles the SQL, runs it in the warehouse with your development credentials, and returns the results to the assistant.")](#)The AI assistant calls execute\_sql. The dbt MCP server forwards the request to dbt platform, which compiles the SQL, runs it in the warehouse with your development credentials, and returns the results to the assistant.

 Is execute\_sql read-only?

No. `execute_sql` doesn't block write statements. What a query can do depends on the permissions of the warehouse credentials it runs with. Use least-privilege warehouse roles for each user's development credentials.

 Whose warehouse credentials does execute\_sql use?

Your personal development credentials for the project's development environment, not your production deployment credentials.

For more answers about `execute_sql` or troubleshooting help, refer to [dbt MCP FAQs and troubleshooting](./mcp-troubleshooting.md).
