Skip to main content
Glama

Prepayment safety check

prepayment_safety_check
Read-onlyIdempotent

Check an address before payment: is it safe to pay? 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, and our recorded labels. 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

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered. The description adds genuinely non-redundant behavior: the three-tier verdict (ok/caution/block) with plain reasons, the auto-detection fallback when no chain is supplied, a $0.02 USDC x402 cost, and a liability disclaimer. Return-value detail is partly left to the existing output schema, which is appropriate.

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 safety question and verdict are front-loaded, and each clause carries content (chains, entity types, cost, disclaimer). It is dense and run-on in the middle, and the trailing "Not legal advice / $0.02 USDC" sentences, while useful, read as appended rather than structured.

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?

With annotations, full schema coverage and an output schema, the description supplies the remaining decision-critical context: cost, verdict scale, chain defaults, and supported networks. It is essentially complete for calling the tool, with only alternative-tool routing left unaddressed.

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 coverage is 100% and the schema already documents every parameter, including the exact omit-chain behavior and the expect enum. The description restates the chain default ("No chain given: it finds the busiest one") and the token risk-score effect, adding little that the schema does not already say. Baseline 3 is correct.

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?

Opens with a specific verb and resource ("Check an address before payment: is it safe to pay?") and enumerates exactly what is screened: OFAC SDN, entity identity, wallet age, first funder, large transfers, token risk score, recorded labels. An agent knows precisely what this tool returns. It never distinguishes itself from the obvious siblings (prepayment_safety_check_lite, _batch, address_sanctions_screen), so it stops short of a 5.

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?

"Before sending or accepting crypto" gives an explicit trigger condition, which is the core of when-to-use guidance. It does not name alternatives or say when NOT to use it (e.g. when the cheaper lite or batch variant would suffice), leaving that inference to the agent.

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