register_budget_alert
Register a webhook URL to receive notifications when actual recorded spend (from record_usage) crosses a USD threshold within a rolling window. The alert monitors your org's spend. Fires at most once per period_days while spend stays over threshold. Returns the alert ID. Requires your service API key on the MCP connection (x-api-key or Authorization: Bearer); org_id defaults to, and must match, that key's org.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public https webhook URL to POST when the alert fires (no private, internal or loopback hosts; redirects are not followed) | |
| org_id | No | Organisation to monitor. Defaults to, and must match, the org of the service key on the MCP connection | |
| period_days | No | Rolling look-back window for the spend check, in days (default: 30) | |
| threshold_usd | Yes | Spend level in USD that triggers the alert |