Skip to main content
Glama

Prepayment safety check

prepayment_safety_check
Read-onlyIdempotent

Check an address before payment: is it safe to pay? OFAC SDN screen, public scam/phishing lists (EVM), 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 (no token: same as /check/lite). 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. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "address": {
      +      "description": "string, e.g. \"0x2211d1D0020DAEA8039E46Cf1367962070d77DA9\""
      +    },
      +    "chain": {
      +      "description": "string, e.g. \"base\""
      +    },
      +    "checks": {
      +      "description": "object"
      +    },
      +    "expect": {
      +      "description": "string, e.g. \"any\""
      +    },
      +    "notes": {
      +      "description": "string, e.g. \"Screens only the digital currency addresses that OFAC publi"
      +    },
      +    "reasons": {
      +      "description": "array"
      +    },
      +    "rules": {
      +      "description": "string, e.g. \"block if the address or token contract is on the OFAC SDN l"
      +    },
      +    "sanctions": {
      +      "description": "object"
      +    },
      +    "summary": {
      +      "description": "object"
      +    },
      +    "token": {
      +      "description": "object"
      +    },
      +    "tokenAddress": {
      +      "description": "string, e.g. \"0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed\""
      +    },
      +    "tokenSanctions": {
      +      "description": "object"
      +    },
      +    "verdict": {
      +      "description": "string, e.g. \"ok\""
      +    },
      +    "wallet": {
      +      "description": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / chain / description
      Previous value: -"Chain of the payment; defaults to solana for base58 addresses, otherwise base"New value: +"Chain 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"
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent and non-destructive, and the description adds behavior an agent cannot infer: it costs $0.02 USDC on Base via x402 (a payment requirement, critical before calling), returns a ok/caution/block verdict with plain reasons, auto-detects the busiest chain, and disclaims legal advice. That is exactly the extra context the annotations do not 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 purpose and the safety verdict come first, followed by checked signals, cost and caveats; nearly every clause carries information. It is a single long sentence with heavy parentheticals, which hurts scanability slightly, but there is little genuine padding.

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 4-parameter tool with an output schema, the description covers everything needed to call it correctly: cost and payment rail, verdict semantics, chain-detection fallback, token-score behavior, and entity/contract flagging. Return-value detail is delegated to the output schema as intended.

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 does add a little meaning (token selection yields a 0-100 risk score, omitted chain triggers busiest-chain detection), but both points largely restate the schema's own chain and token descriptions, and the 'expect' parameter is never mentioned in the description at all.

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?

States a concrete verb and resource ('Check an address before payment') and then enumerates exactly what is checked: OFAC SDN screen, scam/phishing lists, entity identity, wallet age, first funder, large transfers, token risk score. It also differentiates itself from the lite sibling ('no token: same as /check/lite'), so an agent knows precisely which tool this is.

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?

The trigger condition is explicit ('before payment') and the null-token case is routed to the lite equivalent, which is real when-to-use guidance. It stops short of naming the dedicated alternatives (address_sanctions_screen, token_risk_check) that would let an agent decide when a narrower check suffices.

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