execute_adhoc_query
Run ad-hoc SQL queries without saving to Redash. Specify query and data source ID; results are returned and the query is automatically deleted.
Instructions
Execute an ad-hoc query without saving it to Redash. Creates a temporary query that is automatically deleted after execution.
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_adhoc_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SQL query to execute | |
| dataSourceId | Yes | ID of the data source to query against |