Skip to main content
Glama

check_payment_safety

Read-only

Payment-safety verdict: is it safe to accept or pay this token right now? Returns SAFE, CAUTION, or DO_NOT_ACCEPT with safe_to_accept / safe_to_pay booleans and reasons, judged on the live peg price per request ($0.01 USDC per call). USYC is always CAUTION: it is a yield-bearing fund share, not a dollar. Every paid verdict also carries an OFAC sanctions screen and an Ed25519 attestation over the verdict. Add counterparty (the address you are about to pay) to screen it against the OFAC SDN list; a hit blocks the payment. First call (no payment_signature) returns the payment challenge; pay the exact USDC on Solana, then call again with payment_signature.

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": {
      "token": "<token>"
    },
    "name": "check_payment_safety"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesOne of: usyc, usdt, usdc, usde, dai
counterpartyNoAddress you are about to pay (EVM 0x + 40 hex, or base58 32-44 chars). Screened against the OFAC SDN list.
payment_signatureNoOptional. Omit on the first call to receive the payment challenge. After sending the exact USDC amount on Solana mainnet to the pay_to wallet, call again with this set to the Solana transaction signature of your payment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / counterparty
      Added value: +{
      +  "description": "Address you are about to pay (EVM 0x + 40 hex, or base58 32-44 chars). Screened against the OFAC SDN list.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the lone readOnlyHint annotation, the description discloses cost ($0.01 USDC per call), the payment-challenge handshake, OFAC SDN screening behavior where 'a hit blocks the payment', the Ed25519 attestation, and the special-case rule that USYC is always CAUTION. These are material behaviors an agent cannot infer from annotations or schema.

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 verdict purpose and return values are front-loaded, and each subsequent sentence adds distinct information (pricing, USYC caveat, sanctions, payment handshake). It is dense but nearly every clause earns its place; only the attestation mention borders on incidental detail.

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?

With no output schema, the description fully carries the burden by naming the return values and booleans, the cost, the sanctions screening, and the two-call payment sequence. An agent has everything needed to invoke it correctly on the first and second call.

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 this dimension starts at a 3 baseline; the description earns more by explaining the operational consequence of counterparty (a sanctions hit blocks payment) and the full lifecycle of payment_signature (omit first, then supply the Solana transaction signature). It stops short of 5 because the token enum values' risk characteristics are only partially covered (USYC singled out, others not).

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

Purpose5/5

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

The opening sentence names a specific resource and question: 'Payment-safety verdict: is it safe to accept or pay this token right now?' It further enumerates the exact return categories (SAFE, CAUTION, DO_NOT_ACCEPT) and booleans, which clearly separates it from sibling reads like get_peg, get_price, or get_brief_status.

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?

It gives a clear triggering condition ('is it safe to accept or pay this token right now') plus a concrete sub-case for the counterparty parameter and a documented two-step payment flow. It does not explicitly name when to prefer a sibling like get_price instead, so it falls short of a full when/when-not/alternatives statement.

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.

Resources