Normalize Webhook Payload
growsurf_webhook_normalizeValidate/normalize a GrowSurf webhook payload and generate a best-effort idempotency key for dedupe.
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": {
"payload": "<payload>"
},
"name": "growsurf_webhook_normalize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | JSON value to validate. A valid webhook envelope is an object with `event`, `createdAt`, and `data`. Other JSON values return `ok: false`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Whether the payload is a valid GrowSurf webhook envelope. | |
| error | No | Why the payload failed validation. Present only when `ok` is `false`. | |
| envelope | No | The normalized webhook envelope. Present only when `ok` is `true`. | |
| idempotencyKey | No | A deterministic key for ignoring duplicate deliveries. Present only when `ok` is `true`. |