Check a payment before paying
safepay_check_paymentChecks a planned payment before it is made. Judges the merchant, amount and task against the account's payment rules, the payee's payment history, a live web check of the merchant and an intent check, and returns allow, hold or block with the reasons, a check id and a signed attestation valid for 15 minutes. Moves no money and stores no payee address or task text, only their hashes.
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": {
"merchant_name": "<merchant_name>",
"amount": "<amount>",
"task": "<task>"
},
"name": "safepay_check_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | What the user asked the agent to do, in their words | |
| payee | No | The payee account if known (email, PayPal id, or wallet address for a stablecoin) | |
| amount | Yes | Total to pay | |
| network | No | For PYUSD or USDC: the network (stellar, ethereum, solana, arbitrum, base, polygon); payee is then the wallet address | |
| purpose | No | What this payment is for | |
| category | No | e.g. software, travel, groceries | |
| currency | No | ISO 4217 code, or a dollar stablecoin: PYUSD or USDC | USD |
| invoice_ref | No | Invoice or order number, if any | |
| merchant_url | No | The store or checkout URL | |
| merchant_name | Yes | Who is being paid, as shown at checkout |