peaka_update_query
Update an existing saved query in a Peaka project by changing its display name, SQL body, or auto-refresh schedule. Requires project and query IDs to apply the changes.
Instructions
Update an existing saved query in the Peaka project. Adjusts the display name, SQL body, and/or the auto-refresh schedule (for materialized queries). At least one of displayName, inputQuery, or schedule must be provided.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.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": {
"projectId": "<projectId>",
"queryId": "<queryId>"
},
"name": "peaka_update_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queryId | Yes | The query ID to update. Available from peaka_list_queries. | |
| schedule | No | Auto-refresh schedule for MATERIALIZED queries. Use {type: 'interval', repeatDuration}, {type: 'cron', cronExpression, timezone}, or {type: 'none'} to disable an existing schedule. Ignored for PLAIN queries. | |
| projectId | Yes | The Peaka project ID to run against. | |
| inputQuery | No | New Trino SQL body for the saved query. | |
| displayName | No | New human-readable name for the saved query. |