Skip to main content
Glama

OceanAlt Pre-Payment Checks

Call before every payment: allow, review or decline (free, no API key)

payment_decision
Read-onlyIdempotent

Call 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

NameRequiredDescriptionDefault
toYesPayee 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…).
langNoLanguage for human-readable fields (signals, note, advice). Defaults to English.
taskNoOptional 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).
networkNoEVM chain, only for a 0x address. Leave it out for Tron, Solana, Bitcoin and XRP Ledger addresses: the chain is detected from the address.
purposeNoShort purpose/memo (optional).
reasoningNoOptional payment intent: why this payee. Instruction-override phrases here route the payment to review.
amountUsdcNoAmount in USDC (optional; recorded, not required for the decision).
resource_urlNoOptional: 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).
maxAmountUsdcNoOptional declared per-payment cap in USDC. amountUsdc above it → decline.

Output Schema

NameRequiredDescriptionDefault
codeNoInput error code, e.g. unknown_network, network_address_mismatch, unparsable_url.
langNo
noteNo
riskNoRounded to 10 when detail_level is coarse.
allowNoif (!allow) do not pay.
errorNoPresent only on an input error (isError: true).
retryNo
cachedNo
addressNo
blockedNo
receiptNoEd25519-signed decision receipt: { signed, signature_ed25519, note }. Verify with https://oceanalt.com/.well-known/oceanalt-keys.json.
signalsNoHuman-readable. Do not branch on these.
verdictNoclear means no match in the data held, not that it is safe. uncertain must never be treated as clear.
decisionNo
evidenceNo
standardNo
risk_bandNo
retry_hintNo
settlementNo
detail_noteNo
reason_codeNoStable reason code; table at https://oceanalt.com/api/contract.
signal_keysNoCanonical field. Language-independent keys. Branch on these. Full list at https://oceanalt.com/api/contract.
detail_levelNo
evaluated_atNo
intelligenceNo
intent_checkNo
signal_classNo
evidence_as_ofNo
origin_bindingNo
evidence_oldestNo
screening_scopeNoPresent 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_networkNo
accepted_networksNo
payee_fulfillmentNo
requires_informationNo
evidence_qualificationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / signal_keys / description
      Previous value: -"Language-independent keys. Branch on these. Full list at https://oceanalt.com/api/contract."New value: +"Canonical field. Language-independent keys. Branch on these. Full list at https://oceanalt.com/api/contract."
  2. Changed9 schema fields changed
    • addedOutput schema / properties / evidence_oldest / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / evidence_oldest / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / properties / risk / anyOf
      Added value: +[
      +  {
      +    "maximum": 100,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / risk / maximum
      Removed value: -100
    • removedOutput schema / properties / risk / minimum
      Removed value: -0
    • removedOutput schema / properties / risk / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedOutput schema / properties / risk_band / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "low",
      +      "medium",
      +      "high"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / risk_band / enum
      Removed value: -[
      -  "low",
      -  "medium",
      -  "high",
      -  null
      -]
    • removedOutput schema / properties / risk_band / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
  3. Changed1 schema field changed
    • changedOutput schema / properties / screening_scope / description
      Previous value: -"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."New value: +"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."
  4. Changed2 schema fields changed
    • changedOutput schema / properties / screening_scope / description
      Previous value: -"Present only for list-only chains: coverage is list_only, no on-chain analysis is performed."New value: +"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."
    • changedOutput schema / properties / screening_scope / properties / coverage / enum
      Previous value: -[
      -  "list_only"
      -]New value: +[
      +  "list_only",
      +  "testnet_not_screened"
      +]
  5. First observed

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnlyHint, idempotent, openWorld) the description discloses substantive behavior: a signed receipt/attestation is produced even for review, a valid Ed25519 signature does not convert review into approval or prove settlement, and the verification key URL is given. It also explains the resource_url origin-binding escalation to review and that a payee mismatch or unavailable check raises the decision. The 'match is not an endorsement' and 'allowance exhaustion is an error, not a risk decision' notes are exactly the kind of edge semantics structured fields cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The trigger is front-loaded and most sentences carry distinct information — decision vocabulary, fail-closed rule, receipt caveat, key URL, allowance caveat. There is some redundancy in the repeated insistence that review is not approval ('not permission to pay' and 'a valid signature does not turn review into approval'), which could be tightened. Still, no filler sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter, open-world risk tool with an output schema, the description covers everything an agent needs to act correctly: when to call, the minimal required inputs, how to interpret each outcome, what not to conclude from a returned receipt, and how errors differ from decisions. Return-value documentation is correctly left to the output schema rather than duplicated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description does add consequence-level meaning the schema does not: passing resource_url triggers a quote check against the payee, and a mismatch downgrades the outcome to review. The to/network pairing is also restated as the minimal required combination. It does not touch lang, purpose, amountUsdc or maxAmountUsdc, leaving that added meaning to the schema itself.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action (risk decision producing allow | review | decline on a payment) and a precise set of triggers — sending funds, buying a service, settling an invoice, answering an x402 quote. It also draws a hard boundary by saying it 'does not transfer funds or grant payment authorization'. What it lacks is any explicit differentiation from similarly-named siblings such as payee_decide or check_payment_request, so an agent must infer which of those to call.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage timing is unusually explicit: 'call before every payment', with the four concrete situations enumerated and the fail-closed rule ('only an explicit allow passes this risk check'). It also tells the agent that errors and allowance exhaustion are not decisions. It stops short of naming any alternative tool or stating when another check should be used instead, which keeps it below a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.