MCP tool
result
Read a query resultRead-only
Read a result handle: more rows (offset, rows up to 1000, or page), other columns (columns=[names]) or another format (csv, markdown, json), or wait for a running query (wait_seconds). Read-only. Every finished result has signed CSV and Parquet download links (no key needed; each call gives new ones): download it to aggregate, reshape or join it with other sources in your own environment. To stop a running query, use cancel.
Parameters
handlestringrequired- Result handle (res_…).
columnsanyoptional- Only these result columns (names).
formatanyoptional- "csv" (default), "markdown" or "json".
offsetintegeroptional- First row to show, 0-based (the card's "the rest" line gives it). Range 0–….
pageintegeroptional- Page number, 1-based, in pages of `rows` (instead of `offset`). Range 0–….
page_sizeintegeroptional- Older name of `rows`. Range 0–….
rowsintegeroptional- Rows to show (default 100, max 1000), from `offset` or `page`. Range 0–….
wait_secondsintegeroptional- Seconds to wait for a running query (default 20, max 55). Range 0–….
Input schema (JSON)
{
"$defs": {
"OneOrMany": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
],
"description": "One string or a list of them."
},
"RowFormat": {
"description": "How `query` and `result` write rows.",
"oneOf": [
{
"const": "csv",
"description": "A CSV code block: the fewest tokens, and easy to parse.",
"type": "string"
},
{
"const": "markdown",
"description": "A markdown table.",
"type": "string"
},
{
"const": "json",
"description": "A JSON code block: `{\"columns\": […], \"rows\": [[…], …]}` with typed values.",
"type": "string"
}
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"columns": {
"anyOf": [
{
"$ref": "#/$defs/OneOrMany"
},
{
"type": "null"
}
],
"default": null,
"description": "Only these result columns (names)."
},
"format": {
"anyOf": [
{
"$ref": "#/$defs/RowFormat"
},
{
"type": "null"
}
],
"default": null,
"description": "\"csv\" (default), \"markdown\" or \"json\"."
},
"handle": {
"description": "Result handle (res_…).",
"type": "string"
},
"offset": {
"default": null,
"description": "First row to show, 0-based (the card's \"the rest\" line gives it).",
"format": "uint64",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"page": {
"default": null,
"description": "Page number, 1-based, in pages of `rows` (instead of `offset`).",
"format": "uint64",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"page_size": {
"default": null,
"description": "Older name of `rows`.",
"format": "uint64",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"rows": {
"default": null,
"description": "Rows to show (default 100, max 1000), from `offset` or `page`.",
"format": "uint64",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"wait_seconds": {
"default": null,
"description": "Seconds to wait for a running query (default 20, max 55).",
"format": "uint64",
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"required": [
"handle"
],
"type": "object"
}