get_dashboard_cards
Retrieve all cards from a specific Metabase dashboard to analyze or manage its visualizations and data components.
Instructions
Get cards in a dashboard.
Args: dashboard_id (int): ID of the dashboard.
Returns: Dict[str, Any]: Cards in the dashboard.
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>"
},
"name": "get_dashboard_cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dashboard_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/enums/request_enum.py:4-8 (helper)The RequestMethod enum defines the HTTP methods (GET, POST, PUT, DELETE) used by the helper function. The get_dashboard_cards tool uses RequestMethod.GET to specify the HTTP method for the API request.
class RequestMethod(Enum): GET = auto() POST = auto() PUT = auto() DELETE = auto()