Execute a saved query
execute_queryRun a saved query by its ID to retrieve data. Supports parameterized queries and adjustable row limits, with truncation notification for large results.
Instructions
Run a saved query by id and return its results. Pass params as a { name: value } map for parameterized queries. Rows RETURNED are capped at 1,000 by default (a SELECT * on a big table otherwise blows the context budget); the response notes when it truncated. Pass limit for a different cap, or limit:0 for ALL rows (know your table size first). Read-only.
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_id": "<query_id>"
},
"name": "execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return (default 1000, truncation is noted). 0 = unlimited — all rows. | |
| params | No | Query parameters as a { name: value } map. | |
| query_id | Yes | Saved query UUID. |