dashboards_connect_filter
Connect a dashboard filter parameter to a native SQL card template tag so the filter affects that card's query results.
Instructions
Wire a dashboard filter parameter to a native SQL card's template tag so the filter affects that card's results. The parameter_id must match one added via dashboards_add_filter; tag_name is the {{tag_name}} variable in the card's SQL. For text/date/number tags (type='text'|'date'|'number'), use target_type='variable' (default). For dimension tags created with tag_config field_id, and for 'temporal-unit' (time grouping) tags, use target_type='dimension'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dashboard_id": "<dashboard_id>",
"dashcard_id": "<dashcard_id>",
"parameter_id": "<parameter_id>",
"tag_name": "<tag_name>"
},
"name": "dashboards_connect_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag_name | Yes | The SQL template-tag variable name (the {{tag_name}} in the card's native SQL) | |
| dashcard_id | Yes | Dashcard placement ID of the card to wire (NOT the card_id) | |
| target_type | No | Target mapping type. Omit to auto-detect: the tool reads the card's template tag and picks 'dimension' for Field Filter tags, 'variable' for text/date/number tags. Pass explicitly only to override auto-detection. | |
| dashboard_id | Yes | Dashboard ID | |
| parameter_id | Yes | The dashboard parameter_id to connect (must match one from dashboards_add_filter) |