Skip to main content
Glama

OnchainCheck Wallet Screen

Prepayment safety check

prepayment_safety_check
Read-onlyIdempotent

Is it safe to pay this address? One check before sending or accepting crypto: OFAC SDN screen, who it is (exchange, issuer or verified contract name; mixers and fake claim contracts flagged), wallet age, first funder and large transfers on Base, Ethereum, Arbitrum, Optimism or Polygon (activity on Solana), plus a token's 0-100 risk score if given. Returns ok, caution or block with plain reasons. No chain given: it finds the busiest one. Not legal advice. Costs $0.02 USDC on Base via x402.

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": {
      "address": "<address>"
    },
    "name": "prepayment_safety_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain of the payment. Omit it and a base58 address is checked on solana; a 0x address on the EVM chain where it (or the token) has the most transactions, reported in chainDetection
tokenNoToken being paid or received (contract or mint on the same chain); adds its risk score
expectNoWhat the address should be: eoa (a wallet), contract, or any (default); a mismatch gives caution
addressYesAddress you are about to pay or receive from

Output Schema

NameRequiredDescriptionDefault
chainNostring, e.g. "base"
notesNostring, e.g. "Screens only the digital currency addresses that OFAC publi
rulesNostring, e.g. "block if the address or token contract is on the OFAC SDN l
tokenNoobject
checksNoobject
expectNostring, e.g. "any"
walletNoobject
addressNostring, e.g. "0x2211d1D0020DAEA8039E46Cf1367962070d77DA9"
reasonsNoarray
summaryNoobject
verdictNostring, e.g. "ok"
sanctionsNoobject
tokenAddressNostring, e.g. "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed"
tokenSanctionsNoobject

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely new behavioral facts on top: there is a cost ($0.02 USDC on Base via x402, i.e. a paid call with a payment rail), the result vocabulary is ok/caution/block with plain reasons, chain auto-detection is performed and reported, and there is a 'Not legal advice' disclaimer. It also names the supported chain set, which sets expectations about coverage limits. This is well beyond what the structured fields convey.

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?

Front-loads the decision question, then a parenthetical enumeration of signals, then behavior, then cost — a sensible order for a dense tool. It is information-dense rather than padded, though the long parenthetical chain list and the identity clause are slightly cramped and the cost is tacked on as a final afterthought.

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

Completeness4/5

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

For a paid, multi-chain, four-parameter tool with an output schema, the description covers the important unknowns: what is checked, what verdicts come back, chain fallback, cost, and the legal disclaimer; return-value detail is correctly left to the output schema. The main gap is that it never positions itself against the lite or single-purpose sibling tools, which an agent choosing between them would want.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description restates the omission behavior for chain (with less precision than the schema's chainDetection note) and mentions that supplying a token adds a 0-100 risk score, but it adds no syntax, format, or default information the schema does not already carry. Marginal value over structured data.

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?

Opens with a concrete decision framing ('Is it safe to pay this address?') and then enumerates exactly what the check covers: OFAC SDN screen, counterparty identity/label, mixer and fake-claim flagging, wallet age, first funder, large transfers, and an optional token risk score. This is specific enough that an agent can distinguish it from ofac_check, address_label, or the chain-specific wallet_profile tools without inspecting any schema.

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?

States the usage moment clearly ('One check before sending or accepting crypto'), which tells the agent this is a pre-transaction gate rather than a general profiling tool. It also gives fallback behavior when no chain is supplied ('it finds the busiest one'). It does not name the sibling prepayment_safety_check_lite or explain when the cheaper/lighter variant would suffice, so the alternative-selection guidance is implied rather than explicit.

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