update_query
Modify an existing SQL query in a Mode Analytics report by specifying report and query tokens; optionally change SQL text, name, or data source.
Instructions
Update a SQL query in a report.
This is a write operation — it modifies an existing query.
Args: report_token: The report containing the query. query_token: The query to update (use get_report to find query tokens). raw_query: New SQL text. Omit to leave unchanged. name: New query name. Omit to leave unchanged. data_source_id: New data source ID. Omit to leave unchanged.
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": {
"report_token": "<report_token>",
"query_token": "<query_token>"
},
"name": "update_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| raw_query | No | ||
| query_token | Yes | ||
| report_token | Yes | ||
| data_source_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||