execute_analytics_sql
Run read-only analytical SQL queries against DuckDB and validate statements to reject non-SELECT or DDL/DML commands, ensuring safe, analysis-only data retrieval.
Instructions
Execute a read-only analytical SQL query directly against DuckDB.
Rejects any non-SELECT/WITH statements or DDL/DML commands via SQLGlot AST validation.
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": "execute_analytics_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||