get_query_result
Run a saved Redash query by ID and return its latest results as a markdown table or JSON, with optional parameters, row limits, and timeout control.
Instructions
Run an existing saved query by its ID and return the latest results. Behavior: executes the query as stored in Redash and returns up to max_rows rows as a markdown table or JSON, with the column list and a truncation note. Usage: find the query_id with list_queries or get_query. If the query has parameters ({{ name }} placeholders), call get_query first to see their names, types, and allowed values, then pass every one in parameters — Redash does not fill in defaults for API calls. Unlike run_query, this executes already-saved SQL rather than ad-hoc SQL, so the safety guard does not apply.
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 |
|---|---|---|---|
| format | No | Output format: table (markdown) or json | table |
| max_rows | No | Max rows to return (1 to 10000, default 100) | |
| query_id | Yes | ID of the saved query to run (from list_queries) | |
| parameters | No | Values for the query's parameters, keyed by parameter name (from get_query). Text/date: string; number: number; multi-select dropdown: array; date range: {start, end} (e.g. {"start": "2026-10-01", "end": "2026-10-15"}) | |
| timeout_secs | No | Query execution timeout in seconds (1 to 300, default 30) |