Query a saved blend
query_blendRun a saved blend by id and return its rows.
The blend already holds its account set. By default it projects the
blend's saved metrics + dimensions; pass fields (names from
list_fields) to project a specific subset. Supply the time window
(date_range — preset or {"from", "to"}), optional filters
(operators eq|neq|gt|gte|lt|lte|contains|ncontains|in|null|notnull),
and an optional limit. Discover blend ids with list_blends. Returns
the same {columns, rows, row_count, truncated} shape as query_data,
and pages the same way: limit is the page size, and a next_cursor
is read by calling again with the same arguments plus cursor.
If a blend errors because its schema is not warmed, call
update_blend(blend_id, refresh_schema=true) and retry. A blend is the
slowest kind of query, so it is the likeliest to come back as
{"status": "running", "query_id": …} — that is not an error: collect
it with get_query_result(query_id=…), calling again immediately while
it says running, and never by re-issuing this call. 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": {
"blend_id": "<blend_id>"
},
"name": "query_blend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| fields | No | ||
| filters | No | ||
| blend_id | Yes | ||
| date_range | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||