get_card_query_results
Retrieve query results from a Metabase card by providing its ID to access business intelligence data through the MCP server.
Instructions
Get the results of a card's query.
Args: card_id (int): ID of the card.
Returns: Dict[str, Any]: Query result data.
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": "get_card_query_results"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/enums/request_enum.py:1-11 (helper)RequestMethod enum defining HTTP methods (GET, POST, PUT, DELETE) used by the tool to specify the request type when calling make_metabase_request.
from enum import Enum, auto class RequestMethod(Enum): GET = auto() POST = auto() PUT = auto() DELETE = auto() def __str__(self): return self.name