Execute SQL
execute_queryRun a single SQL statement for small results or SHOW/DESCRIBE/EXPLAIN with read-only checks and transactions. Add LIMIT or use stream_query to bound large result sets.
Instructions
Run one SQL statement for small results or SHOW/DESCRIBE/EXPLAIN. Read-only statement checks and transactions are enabled. Results have no row cap; add LIMIT or use stream_query. Database functions can have side effects.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sql": "SELECT ?::INT AS value LIMIT 1",
"params": [
42
]
},
"name": "execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One Vertica SQL statement, not a script. Use ? placeholders with params; add LIMIT to bound execute_query reads. | |
| params | No | Values for ? placeholders in SQL order; values only, not identifiers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||