Batch query results
stream_queryExecute a bounded SELECT or WITH query once and return all results in batches within a single response; no cursor or incremental streaming is provided.
Instructions
Use for bounded SELECT/WITH results valid inside a subquery. Executes once and returns batches in one response; no cursor or incremental streaming. Use ORDER BY for reproducible ordering. Functions can have side effects.
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": "stream_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. | |
| maxRows | No | Maximum returned rows. Omit for min(batchSize * 100, 1000000). Truncation does not provide a continuation cursor. | |
| batchSize | No | Rows per returned batch, not transport messages. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||