export_data
Export database query results as CSV or JSON for portable data transfer and analysis.
Instructions
Export query results as CSV or JSON format. Useful for getting data out of the database in a portable format.
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": {
"query": "<query>"
},
"name": "export_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows (default: 100, max: 1000) | |
| query | Yes | SQL query or MongoDB JSON query | |
| format | No | Output format (default: csv) | |
| connection | No | Connection alias (default: 'default') |