alerts_update
Update an existing SQL alert by specifying its ID, name, query ID, and trigger condition. Modify notify settings, schedule, and other optional parameters.
Instructions
Update an existing SQL alert.
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": {
"id": "<id>",
"name": "<name>",
"query_id": "<query_id>",
"condition": "<condition>"
},
"name": "alerts_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Alert ID | |
| name | Yes | Alert name | |
| query_id | Yes | ID of the saved query to evaluate | |
| condition | Yes | Trigger condition: {'op': '>' | '<' | '>=' | '<=' | '==' | '!=', 'operand', 'threshold'} | |
| notify | No | Notify settings: {'subscribers': [...]} | |
| options | No | ||
| rearm | No | ||
| schedule | No | ||
| parent | No | ||
| evaluation | No | ||
| run_as_role | No | OWNER | VIEWER | |
| custom_subject | No | ||
| custom_body | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |