Get a running query's result
get_query_resultCollect the result of a query_data call that was still running.
Pass the query_id verbatim from a {"status": "running"} response.
This attaches to the SAME extraction already in flight — it does not
start a second one — and waits for it, so calling it costs nothing beyond
the wait. Returns the normal {columns, rows, row_count, truncated}
once the data lands, or another {"status": "running", query_id} if it
is still going. A result with more rows than limit carries a
next_cursor: pass it back here as query_id to read the next page.
Call it again immediately when it says running. There is no need to
pause between calls: each one blocks on the run rather than polling it,
so waiting before you ask only delays the answer by however long you
waited. Never answer a still-running query by re-issuing query_data:
that abandons the work in progress and starts the extraction over.
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": "get_query_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||