Call before every payment: allow, review or decline (free, no API key)
payment_decisionCall before sending funds, buying a service, settling an invoice or answering an x402 payment quote. Pass the payee address (to) and network to get allow | review | decline, evidence and retry semantics. Only an explicit allow passes this risk check; review, decline, missing or unknown decisions and errors are not permission to pay. This tool does not transfer funds or grant payment authorization. A signed receipt or attestation records the decision, including review; a valid signature does not turn review into approval or prove settlement. If a receipt is returned, its Ed25519 signature can be verified with the public key at https://oceanalt.com/.well-known/oceanalt-keys.json. Pass resource_url to check the origin's payment quote against the payee; a different payee or an unavailable check raises the decision to review. A match is not an endorsement of the seller. Free within the monthly allowance; no signup or key is required to start. Anonymous allowance exhaustion is an error, not a risk decision.
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": {
"to": "<to>"
},
"name": "payment_decision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Payee address the agent is about to pay: 0x (EVM), T… (TRON), Solana, Bitcoin or r… (XRP Ledger); list matching only: Monero (4…/8…), Bitcoin Cash (q…/p…, optional bitcoincash: prefix), Litecoin (ltc1…) or BNB Beacon Chain (bnb1…). | |
| lang | No | Language for human-readable fields (signals, note, advice). Defaults to English. | |
| task | No | Optional payment intent: what this payment is for. Sending task, reasoning or maxAmountUsdc opts into a deterministic intent check; an empty intent is itself a finding (requires_information). | |
| network | No | EVM chain, only for a 0x address. Leave it out for Tron, Solana, Bitcoin and XRP Ledger addresses: the chain is detected from the address. | |
| purpose | No | Short purpose/memo (optional). | |
| reasoning | No | Optional payment intent: why this payee. Instruction-override phrases here route the payment to review. | |
| amountUsdc | No | Amount in USDC (optional; recorded, not required for the decision). | |
| resource_url | No | Optional: the http(s) URL of the paid resource, i.e. the URL that returned the 402 payment quote. OceanAlt asks that origin for its own quote and checks whether it names this payee (origin binding). | |
| maxAmountUsdc | No | Optional declared per-payment cap in USDC. amountUsdc above it → decline. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Input error code, e.g. unknown_network, network_address_mismatch, unparsable_url. | |
| lang | No | ||
| note | No | ||
| risk | No | Rounded to 10 when detail_level is coarse. | |
| allow | No | if (!allow) do not pay. | |
| error | No | Present only on an input error (isError: true). | |
| retry | No | ||
| cached | No | ||
| address | No | ||
| blocked | No | ||
| receipt | No | Ed25519-signed decision receipt: { signed, signature_ed25519, note }. Verify with https://oceanalt.com/.well-known/oceanalt-keys.json. | |
| signals | No | Human-readable. Do not branch on these. | |
| verdict | No | clear means no match in the data held, not that it is safe. uncertain must never be treated as clear. | |
| decision | No | ||
| evidence | No | ||
| standard | No | ||
| risk_band | No | ||
| retry_hint | No | ||
| settlement | No | ||
| detail_note | No | ||
| reason_code | No | Stable reason code; table at https://oceanalt.com/api/contract. | |
| signal_keys | No | Canonical field. Language-independent keys. Branch on these. Full list at https://oceanalt.com/api/contract. | |
| detail_level | No | ||
| evaluated_at | No | ||
| intelligence | No | ||
| intent_check | No | ||
| signal_class | No | ||
| evidence_as_of | No | ||
| origin_binding | No | ||
| evidence_oldest | No | ||
| screening_scope | No | Present only when coverage is limited. list_only: list matching only, no on-chain analysis on this chain. testnet_not_screened: the requested testnet was not screened; the result covers lists and Ethereum mainnet only, so a payee with no list hit gets review (reason_code list_only_coverage), not allow. | |
| screened_network | No | ||
| accepted_networks | No | ||
| payee_fulfillment | No | ||
| requires_information | No | ||
| evidence_qualification | No |