cards_get
Retrieves a Metabase saved question with its SQL definition and template-tag settings as structured JSON, including native SQL in a fenced block.
Instructions
Retrieve the full saved question including its SQL query definition and template-tags configuration (name, type, field_id, widget_type, default, required) as structured JSON. Returns SQL in a fenced code block for native SQL cards.
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": {
"card_id": "<card_id>"
},
"name": "cards_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_id | Yes | Metabase saved question (card) ID |