Set a project's alerts
SetProjectAlertsChanges what Pethost watches on a project and when it tells the person: site checks (an address the machine opens every minute) and traffic rules (5xx or p95 over a window), off, mute. A list given replaces the project's (send Project.alerts' with your change); remove_* empties it; a scalar left out stays. Service crashes and failed backups are always watched. Answers with Project.alerts. Where alerts go is the person's choice in the panel's Settings → Alerts (Machine.alert_channels): no tool sets it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "SetProjectAlerts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| off | No | True = incidents are recorded, nothing is sent. Absent = stays. | |
| checks | No | ≤10. Given = the whole list. | |
| workspace | No | The workspace: its id or name (ListWorkspaces). Omit when the account has one. | |
| project_id | No | ||
| mute_minutes | No | ≤10080; 0 = unmute. Incidents opened meanwhile are not sent. Absent = stays. | |
| remove_checks | No | True = none, not even the default check. | |
| traffic_rules | No | ≤10. Given = the whole list. | |
| remove_traffic_rules | No | True = none. |