Preview Webhook Rules
preview_webhook_rulesCheck rules without sending anything. Runs them on one event (a stored delivery_id, or event plus payload) and returns what each rule would send, with filter errors, missing fields, and invalid Live Activity content. Without an event, runs them on the webhook's stored deliveries from the last 7 days and returns how often each rule would have fired, so you can catch noisy rules before saving. Pass rules to test edits; leave them out to test the webhook's current rules.
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": "preview_webhook_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | For a GitHub payload, the X-GitHub-Event name, such as workflow_run. GitLab payloads name it themselves. | |
| rules | No | Rules, at most 25. Each picks events, optionally filters them with a CEL `if`, and runs one action: push_notification, dismiss_push_notification, live_activity, or widget_metric. Call get_webhook_guide first for the format and examples. | |
| payload | No | A sample payload to test on. | |
| provider | No | github or gitlab, for a payload without webhook_id. Defaults to the webhook's provider, else github. | |
| webhook_id | No | The webhook_id from list_webhooks or create_webhook. | |
| delivery_id | No | A delivery_id from list_webhook_deliveries to test on. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||