Verify webhook signature
verify_webhook_signatureValidate Mercado Pago webhook x-signatures offline with HMAC-SHA256, no access token, returning validity and the signed manifest for debugging.
Instructions
Verify a Mercado Pago webhook x-signature locally with HMAC-SHA256. Runs offline and needs no access token. Returns whether it is valid and the signed manifest for debugging.
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": {
"x_signature": "<x_signature>"
},
"name": "verify_webhook_signature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | No | Webhook secret from Your integrations. Omit to use MP_WEBHOOK_SECRET from the server env | |
| data_id | No | data.id from the notification URL query string (not the JSON body) | |
| x_signature | Yes | Raw x-signature header, e.g. "ts=1742505638683,v1=<hex>" | |
| x_request_id | No | Raw x-request-id header | |
| max_age_seconds | No | Reject signatures older than this. Omit when replaying old notifications |