HMAC Verify
hmac_verifyVerify an HMAC signature for a message using a secret key. Returns a boolean indicating whether the provided signature matches the computed one.
Instructions
Check a message against an expected HMAC using a constant-time comparison. Use this to validate an inbound webhook signature rather than comparing strings yourself.
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": {
"message": "<message>",
"secret": "<secret>",
"signature": "<signature>"
},
"name": "hmac_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | Yes | ||
| message | Yes | ||
| algorithm | No | sha256 | |
| signature | Yes | The signature to check, hex or base64 |