mad_check_authorization
Signing firewall for EIP-3009 / x402 authorizations. Call BEFORE signing, every time. Returns SIGN or DONT_SIGN with machine-readable reasons. A DONT_SIGN is a stop, not a suggestion; a SIGN is evidence, not an instruction — the caller's own policy still decides.
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": {
"from": "<from>",
"to": "<to>",
"value": "<value>",
"validAfter": "<validAfter>",
"validBefore": "<validBefore>",
"nonce": "<nonce>",
"chainId": "<chainId>",
"verifyingContract": "<verifyingContract>"
},
"name": "mad_check_authorization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| now | No | Optional: pin evaluation time, unix seconds | |
| from | Yes | ||
| nonce | Yes | bytes32 hex nonce | |
| value | Yes | Amount in the token's smallest unit, as a string | |
| chainId | Yes | ||
| validAfter | Yes | Unix seconds | |
| validBefore | Yes | Unix seconds | |
| verifyingContract | Yes | Token contract (e.g. USDC on Base) |