webhook_verify
Verify HMAC webhook signatures using constant-time comparison, returning a match result to confirm authenticity.
Instructions
Constant-time verify an HMAC webhook signature.
Same parameters as webhook_sign plus the candidate signature.
Returns matches=True only if the signature is byte-equal under
constant-time comparison.
Returns: dict with keys: matches, algorithm, encoding, signing_string, valid
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": {
"body": "<body>",
"secret": "<secret>",
"signature": "<signature>"
},
"name": "webhook_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| secret | Yes | ||
| encoding | No | hex | |
| template | No | {body} | |
| algorithm | No | sha256 | |
| signature | Yes | ||
| timestamp | No |