webhook_validate_signature
Verify Meta webhook payloads by validating X-Hub-Signature-256 HMAC-SHA256 signatures against the raw body and app secret to reject forged requests.
Instructions
HMAC-SHA256 verification for Meta POST webhooks (X-Hub-Signature-256 header).
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": {
"raw_body": "<raw_body>",
"signature": "<signature>"
},
"name": "webhook_validate_signature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_body | Yes | Raw POST body, byte-for-byte as Meta sent it | |
| signature | Yes | Value of the X-Hub-Signature-256 header, e.g. 'sha256=abcdef…' | |
| app_secret | No | Meta app secret (falls back to META_APP_SECRET env) |