Skip to content

Return dimension values query errors as tool results#796

Merged
wiggzz merged 1 commit into
mainfrom
wtj/DI-4274-dbt-mcp-dimension-values-error-result
Jun 5, 2026
Merged

Return dimension values query errors as tool results#796
wiggzz merged 1 commit into
mainfrom
wtj/DI-4274-dbt-mcp-dimension-values-error-result

Conversation

@wiggzz

@wiggzz wiggzz commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Why

get_dimension_values can fail because the model supplied an invalid dimension or metric. Those query-level failures should be returned to the model for self-correction instead of being raised as generic runtime errors.

What

This adds a typed dimension-values error result from the Semantic Layer fetcher and has the public single-project and multi-project tools return either the success response or typed error response. Operational Semantic Layer failures still propagate as real exceptions.

Notes

Drafted by GPT-5 Codex under the direction of @wiggzz.

@wiggzz wiggzz force-pushed the wtj/DI-4274-dbt-mcp-dimension-values-error-result branch from eb34152 to ad04cb2 Compare June 5, 2026 19:12
@wiggzz wiggzz marked this pull request as ready for review June 5, 2026 19:51
@wiggzz wiggzz requested review from a team, b-per, jairus-m and jasnonaz as code owners June 5, 2026 19:51

@jairus-m jairus-m left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice ty

@wiggzz wiggzz merged commit 7bab8ad into main Jun 5, 2026
7 checks passed
@wiggzz wiggzz deleted the wtj/DI-4274-dbt-mcp-dimension-values-error-result branch June 5, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants