get_query_result
Execute a saved query from Redash by its ID and retrieve the latest results as a table or JSON. Specify output format, row limit, and timeout.
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. Unlike run_query, this executes already-saved SQL rather than ad-hoc SQL, so the safety guard does not apply.
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) | |
| timeout_secs | No | Query execution timeout in seconds (1 to 300, default 30) |