execute_raw_query
Execute raw SQL directly on a Redash data source to retrieve query results, with support for cached data and query parameters.
Instructions
Execute a raw SQL query directly and return results
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": "<query>",
"dataSourceId": "<dataSourceId>"
},
"name": "execute_raw_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SQL query to execute | |
| maxAge | No | Maximum age of cached results in seconds (default: 0) | |
| parameters | No | Parameters to pass to the query (if any) | |
| dataSourceId | Yes | ID of the data source to execute the query on |