Static source inference · medium confidence · detected: Logging
Deprecated protocol patterns detected
Summary
dbt Core MCP has 7 tools with moderate structural quality but significant gaps in descriptions and parameter documentation. Tool names follow verb_noun convention (parse_project, list_resources, get_resource_details, get_compiled_code, run_dbt_command, get_project_config, get_adapter_type). However, 4 of 7 tools lack visible input schemas in the source code provided. Parameter descriptions are sparse or missing entirely. The run_dbt_command tool has a WRITE risk classification but no confirmation/dry-run pattern documented. Error handling is not evident in the source snippet. Descriptions are present but often under 100 characters and lack actionable guidance for LLM selection. Overall, this is a functional server that would benefit from schema formalization and richer parameter documentation.
Tools (7)
get_adapter_typeread only38/100
Get the dbt adapter type configured in profiles.yml
get_compiled_coderead onlysource verified42/100
Get the compiled SQL code for a dbt model
get_project_configread only42/100
Get the dbt project configuration from dbt_project.yml
get_resource_detailsread only50/100
Get detailed information about a specific dbt resource
list_resourcesread onlysource verified73/100
List all dbt resources (models, sources, seeds, tests, snapshots, analyses) in the project
parse_projectread only45/100
Parse dbt project to generate manifest.json
run_dbt_commandwrite50/100
Execute a dbt command with the specified arguments
4 of 7 tools (parse_project, get_compiled_code, get_project_config, get_adapter_type) have no visible input schema definitions in the source code. Per HARD SCORING RULES, tools without schemas must score 0 on schema dimension.
run_dbt_command is a destructive/write tool (risk: WRITE) that executes arbitrary dbt commands, but no confirmation pattern, dry-run mode, or detailed error recovery guidance is documented. Agents could accidentally run destructive operations without safeguards.
Tool descriptions are brief (35-60 chars on average) and lack actionable guidance for LLM selection. Example: 'Get the dbt adapter type configured in profiles.yml' does not explain WHEN to call this tool or what the LLM should do with the result.
get_adapter_typeget_project_configparse_project
Recommendations
Add explicit input schemas to parse_project, get_compiled_code, get_project_config, and get_adapter_type. Define required vs optional parameters, types, and constraints (enums, patterns, min/max).
Expand tool descriptions to 150-250 characters. Include: WHAT the tool does, WHEN to use it (vs similar tools), and WHAT the LLM should expect in the response. Example: 'get_resource_details returns detailed metadata on a dbt resource (model, test, source, etc.). Call this after list_resources to understand a specific resource's dependencies, compiled SQL, and test results.'
Document output schemas for all tools. Specify field names, types, and what information is available. Example: get_resource_details() returns {resource_id, resource_type, description, compiled_sql, tests[], upstream_nodes[], downstream_nodes[]}.
Add parameter descriptions for resource_type and args. For resource_type, define the enum: ['model', 'source', 'seed', 'test', 'snapshot', 'analysis']. For args, clarify expected format (list of CLI flags) and examples.
Implement error handling with recovery guidance. If parse_project fails (e.g., missing dbt_project.yml), return: 'dbt project not found at {path}. Ensure dbt_project.yml exists or provide explicit project_dir.' If a dbt command fails, return the error message plus a suggestion: 'dbt run failed: {error}. Try run_dbt_command with select=<model> to run a single model.'
Add a confirmation/dry-run pattern for run_dbt_command. Before executing, optionally return the dbt CLI command that would be executed without actually running it. Document this as: 'When dry_run=true, returns the dbt CLI invocation without executing. Set to false to run the command.'
Spec posture evidence
Inferred effective spec: <=2025-11-25.
Relies on Logging (deprecated) - log to stderr or use OpenTelemetry
Parameter 'resource_type' in list_resources and 'args' in run_dbt_command lack type constraints (enum for resource_type, array validation for args). Free-form strings invite invalid input. Enums or regex patterns should be documented.
No evidence of error handling patterns (recovery guidance, error classification, or actionable error messages) in the source snippet. If a dbt command fails, the LLM has no guidance on what to try next.
Output schemas are not documented in the source code. LLMs cannot infer what fields get_resource_details() or get_compiled_code() return, making it difficult to compose downstream tools. Per pattern:tool requirement, documented return types are mandatory for A/A+ grades.
The 'select' parameter in run_dbt_command is optional but no guidance provided on what format it expects (a dbt selector string? a model name?). LLMs will struggle to compose this without examples or format constraints in the description.
For list_resources output, add pagination support. Specify total count and optional limit/offset parameters. Example: 'Returns up to 50 resources. Use limit and offset for pagination. Set limit between 1-100.'
Document what fields are returned in get_compiled_code (compiled_sql, raw_sql, manifest_node). Include whether this tool handles materialization (table, view, ephemeral) and macro expansion.
Add inter-tool guidance. Example: 'After calling list_resources with resource_type=model, pass the model name to get_compiled_code to see the compiled SQL.'
Clarify the timeout parameter behavior. Document default timeout, what happens if a dbt command exceeds it (error message format), and whether timeouts are retryable.