create_card
Create a new Metabase card from a native SQL query. Specify the database, query, display type, and optionally a description or collection.
Instructions
Create a new card (saved question) with a native SQL query.
Args: name: Name of the card/question database_id: ID of the database to query query: SQL query string display: Visualization type: table, line, bar, pie, scalar, row, area, combo, pivot, funnel, map description: Optional description collection_id: Optional collection ID to save the card in
Returns: Created card details
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": {
"name": "<name>",
"database_id": "<database_id>",
"query": "<query>"
},
"name": "create_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| database_id | Yes | ||
| query | Yes | ||
| display | No | table | |
| description | No | ||
| collection_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |