Skip to main content
Glama

Base & EVM DeFi Pre-Trade Shield (x402)

Screen an EVM wallet for phishing, sanctions and laundering flags plus live balances

evm_wallet_risk_check
Read-onlyIdempotent

Screens one EVM address before an agent pays it, approves it or accepts funds from it: GoPlus address-security flags for phishing, theft, sanctions, money laundering, mixers, fake KYC, blacklists and malicious contracts created, rolled up into a risk verdict CLEAN, SUSPICIOUS or MALICIOUS with a score, plus live on-chain facts from an RPC node: whether it is a person's wallet (EOA) or a contract, its transaction count and its ETH and USDC balances on Base. Use it as a counterparty check in payment, payout and escrow flows, or to vet the deployer of a token found by base_token_safety_check. Do not use it to identify who owns a wallet, which it cannot do, or for a token contract's own risk, which base_token_safety_check covers. CLEAN only means no known flag, not a guarantee. Read 'riskVerdict', 'triggeredFlags' and 'accountType'. Costs 0.015 USDC per call, paid with x402 v2 on Base (eip155:8453) or with a B2B X-API-Key; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header instead of an exception, and every failure is a JSON body with ok false and 'error', so an agent loop never breaks on a thrown error. Read-only: it never signs, sends or approves a transaction and holds no keys.

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": "evm_wallet_risk_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain to screen the address on. Default base.base
addressYesWallet or contract address, 0x followed by 40 hex characters. ENS names and tickers are not accepted and return ok false with error 'invalid_wallet_address'.

Output Schema

NameRequiredDescriptionDefault
okYesFalse when the address is malformed or the call was rejected.
metaNoCall metadata: service, version, authMode ('x402' or 'b2b-api-key'), facilitator and processingTimeMs.
chainNoResolved chain key.
errorNoMachine code of the failure, present only when ok is false.
addressNoThe screened address.
chainIdNoEVM chain id.
messageNoHuman-readable failure detail, present only when ok is false.
sourcesNogoPlusAddressSecurity and onchainRpc: which upstreams answered.
txCountNoTransactions sent from the address (nonce).
balancesNonativeEth and usdc as numbers, null when the RPC did not answer.
riskScoreNo95 for sanctions, theft or phishing; 80 for two or more flags or malicious contracts created; 55 for one flag; 0 when none.
accountTypeNoEOA for a key-controlled wallet, CONTRACT when code is deployed at the address.
riskVerdictNoMALICIOUS from score 75, SUSPICIOUS from 40, otherwise CLEAN.
triggeredFlagsNoGoPlus flag names that fired, such as sanctioned, phishing_activities, money_laundering or mixer.
maliciousContractsCreatedNoNumber of malicious contracts deployed by this address.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations it discloses pricing (0.015 USDC via x402 v2 on Base or an X-API-Key), error semantics (HTTP 402 with PAYMENT-REQUIRED header returned instead of an exception; all failures are JSON with ok false, so agent loops don't break), and the no-key/no-signing guarantee. This is exactly the extra context annotations 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?

Dense but front-loaded: the core purpose and what is checked come first, followed by routing guidance, then payment and error mechanics. Every sentence carries information an agent needs, though the payment/transport detail could be tightened into a shorter clause without loss.

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?

An output schema exists, so return values need not be described, yet the description still points the agent at the key fields (riskVerdict, triggeredFlags, accountType). For a two-parameter, read-only screening call it covers purpose, alternatives, cost, failure modes, and safety profile with nothing material missing.

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%, with both parameters documented including the address regex, rejected input types, and the chain enum with default base, so the schema does the heavy lifting. The description adds only marginal signal ('one EVM address'), and its mention of balances specifically on Base could momentarily obscure that the chain parameter accepts seven chains.

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 specific verb and resource ('Screens one EVM address'), enumerates exactly what is checked (GoPlus phishing/sanctions/laundering flags plus RPC facts like EOA vs contract, tx count, ETH/USDC balances) and names the verdict vocabulary. It is clearly distinguishable from base_token_safety_check, which it explicitly scopes out.

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

Usage Guidelines5/5

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

Gives concrete when-to-use contexts (before paying, approving, or accepting funds; vetting a token deployer found by base_token_safety_check) and explicit exclusions: it cannot identify owners, and token contract risk belongs to base_token_safety_check. The caveat that CLEAN means 'no known flag' rather than a guarantee further frames appropriate reliance.

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.