You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
body: Add optional grain field to order_by in query_metrics; when provided it takes precedence over the matching group_by grain, preserving backward-compatible fallback when omitted
body: 'list_metrics now accepts a list of substrings in the search parameter (results are unioned and deduplicated, fetched in parallel) and prefixes its CSV with a # Note: line whenever description/metadata are trimmed because the response exceeded DBT_MCP_SL_MAX_RESPONSE_CHARS. Trimming is also now scoped to broad listings (result count above metrics_related_max) so a narrow result set always returns full description and metadata.'
Copy file name to clipboardExpand all lines: src/dbt_mcp/prompts/semantic_layer/list_metrics.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,5 +6,7 @@ When the number of metrics is below the configured threshold (default: 10), each
6
6
7
7
When above the threshold, only metrics are returned. `metric_time` is a standard time dimension available on most metrics — you can often query directly without calling `get_dimensions` first. Call `get_dimensions` only when you need non-time dimensions or specific granularity details.
8
8
9
+
For broad listings that exceed the size budget, the `description` and `metadata` columns are dropped to save tokens and the CSV is prefixed with one or more `# Note:` lines explaining what happened. When that happens, call `list_metrics` again with the `search` parameter to retrieve those fields for the specific metrics you care about — a narrow result set (at or below the related-metrics threshold) is always returned with full `description` and `metadata`, even if the text is verbose. `search` accepts either a single substring or a list of substrings; when a list is provided, metrics whose name matches **any** of the substrings are returned (deduplicated), so you can fetch details for several metrics in one call.
10
+
9
11
If the user is asking a data-related or business-related question, use this tool as a first step.
0 commit comments