Run Query
run_queryExecutes SQL queries against DuckDB to retrieve and analyze loaded CSV or Excel data, helping agents validate metrics and power dashboards.
Instructions
Execute a SQL query against the DuckDB database.
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": {
"sql": "<sql>"
},
"name": "run_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL query string (e.g. "SELECT branch, SUM(total_usd) FROM sales GROUP BY branch"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |