create_mongodb_card
Create a MongoDB question card in Metabase by specifying database ID, collection name, and MongoDB query. Optionally add a description, assign to a collection, or configure visualization settings.
Instructions
Create a new MongoDB question/card in Metabase.
Args: name: Name of the card. database_id: ID of the MongoDB database. collection: MongoDB collection name. query: MongoDB query string (aggregation pipeline or query). description: Optional description. collection_id: Optional collection to place the card in. visualization_settings: Optional visualization configuration.
Returns: The created MongoDB card object.
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>",
"collection": "<collection>",
"query": "<query>"
},
"name": "create_mongodb_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| database_id | Yes | ||
| collection | Yes | ||
| query | Yes | ||
| description | No | ||
| collection_id | No | ||
| visualization_settings | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||