export_csv
Execute a safe SQL SELECT query and export results to a CSV file, returning the file path.
Instructions
Execute a SQL query and export results as a CSV file. The query is validated for safety. Returns the file path of the generated CSV.
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_csv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SQL SELECT query to export |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |