Skip to content

Add dimension metadata support #521

Merged
DevonFulcher merged 8 commits into
dbt-labs:mainfrom
Muizzkolapo:Feature/437/add-dimensions-metadata
Jan 16, 2026
Merged

Add dimension metadata support #521
DevonFulcher merged 8 commits into
dbt-labs:mainfrom
Muizzkolapo:Feature/437/add-dimensions-metadata

Conversation

@Muizzkolapo

@Muizzkolapo Muizzkolapo commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

Summary

This is a simple change to add dimension metadata support across the Semantic Layer tool response.

What Changed

  • Added config.meta to the dimensions GraphQL query and surfaced it in DimensionToolResponse.
  • Updated get_dimensions prompt documentation to describe the metadata field.
  • Added a unit test to verify metadata extraction and missing config handling.
  • Added a lightweight integration assertion for metadata presence.

BEFORE
image

AFTER
image

Why

As stated in this gh issue #437. The dimension metadata already exists in the Semantic Layer API but wasn’t being returned. Exposing it improves downstream decision‑making and keeps parity with metrics.

Related Issues

Closes #437
Related to #437

Checklist

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation (in https://github.com/dbt-labs/docs.getdbt.com) if required -- Mention it here
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Additional Notes

@Muizzkolapo Muizzkolapo marked this pull request as ready for review January 15, 2026 19:08
@Muizzkolapo Muizzkolapo requested review from a team, b-per and jasnonaz as code owners January 15, 2026 19:08
@Muizzkolapo Muizzkolapo marked this pull request as draft January 15, 2026 19:14
@Muizzkolapo Muizzkolapo marked this pull request as ready for review January 15, 2026 19:22
Comment thread src/dbt_mcp/prompts/semantic_layer/get_dimensions.md Outdated

@DevonFulcher DevonFulcher 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!

@DevonFulcher DevonFulcher merged commit 5d254b6 into dbt-labs:main Jan 16, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Include dimension metadata in get_dimensions MCP tool response

2 participants