Agent Payment Safety ($0.01 USDC)
payment_guardUse for agent payment safety: validate a live x402 challenge, price, Base network, USDC asset, recipient, funding, gas reserve, and destination immediately before signing.
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": {
"payerAddress": "<payerAddress>",
"serviceUrl": "<serviceUrl>",
"maxAmountUsdc": "<maxAmountUsdc>"
},
"name": "payment_guard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serviceUrl | Yes | Public HTTPS endpoint whose live x402 payment challenge should be validated. | |
| payerAddress | Yes | Base wallet address that would sign and fund the x402 payment. | |
| expectedPayTo | No | Optional recipient address that the payment challenge must match. | |
| maxAmountUsdc | Yes | Maximum acceptable USDC charge as a decimal string. | |
| minGasReserveEth | No | Optional minimum ETH balance to preserve for Base gas. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | ||
| alerts | Yes | ||
| checks | Yes | ||
| network | Yes | ||
| decision | Yes | ||
| riskLevel | Yes | ||
| safeToSign | Yes | ||
| quotedPayTo | Yes | ||
| quotedAmountUsdc | Yes | ||
| recommendedAction | Yes |