Get Alert Rule
getAlertRuleGet one alert rule by id (from listAlertRules), with its last 50 state changes (when it went into alarm or recovered, and why) and, for a schedule or test rule, the outcomes of up to 10 recent runs it watched. Use when: the user asks when an alert fired, or why it is in alarm. Read-only. Needs notifications:read. Returns 404 if the rule is not in your workspace. Only a person signed in to the nopaque web app can call this; an API key is refused.
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": "getAlertRule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Alert rule id, from listAlertRules. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | An alert rule as the API returns it. Internal join keys, and who else asked for in-app alerts, are left out. | |
| recentRuns | Yes | ||
| transitions | Yes |