hmac_verify
Verify HMAC authentication by checking a hex-encoded HMAC against a key and data using SHA-256 or SHA-512.
Instructions
Verify HMAC.
Args: key: Hex-encoded key. data: String that was signed. hmac: Hex-encoded HMAC to verify. algorithm: Hash algorithm - 'sha256' or 'sha512'.
Returns: True if HMAC is 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": {
"key": "<key>",
"data": "<data>",
"hmac": "<hmac>"
},
"name": "hmac_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| data | Yes | ||
| hmac | Yes | ||
| algorithm | No | sha256 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |