create_query
Create a new query in Redash by specifying the SQL query text, data source, name, and optional tags, schedule, or description.
Instructions
Create a new query in Redash
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": {
"name": "<name>",
"data_source_id": "<data_source_id>",
"query": "<query>"
},
"name": "create_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the query | |
| tags | No | Tags for the query | |
| query | Yes | SQL query text | |
| options | No | Query options | |
| schedule | No | Query schedule | |
| description | No | Description of the query | |
| data_source_id | Yes | ID of the data source to use |