Skip to main content
Glama

chain_transfer_preflight

Read-only

Token transfer preflight (GO/REVIEW/BLOCK) — Check a token or native transfer BEFORE an agent signs it: sender balance vs amount, native gas, recipient type (EOA/contract/7702), OFAC SDN sanctions on both sides, USDC/USDT/EURC issuer freezes, and classic mistakes (zero/burn address, sending to the token contract, self-transfer). Params: chain (base, ethereum, arbitrum, optimism, polygon), from, to, token (USDC, a 0x contract address, or native), amount (token units). Returns verdict GO/REVIEW/BLOCK with blockers, warnings and notes. Read-only. Price: $0.008 USDC (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": {
      "chain": "<chain>",
      "from": "<from>",
      "to": "<to>",
      "token": "<token>",
      "amount": "<amount>"
    },
    "name": "chain_transfer_preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B
fromYes0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
chainYesbase
tokenYesUSDC
amountYes10

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and non-destructive, and the description adds substantial context beyond them: the exact checks performed, that it is read-only, and that invocation costs $0.008 USDC on Base via x402 — a payment constraint an agent must know before calling. This is exactly the kind of behavior annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the verdict model, then the checked conditions, then params, then cost — the order an agent needs. It is dense but every clause carries information; nothing is repeated from the schema or annotations.

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 supplies the return contract (GO/REVIEW/BLOCK plus blockers, warnings, notes), the input domains, and the pricing/auth model. For a preflight gate of this complexity, an agent has everything needed to decide to call it and interpret the result.

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% but the schema 'descriptions' are only example values ('base', 'USDC', '10'), so the description carries real semantic load by enumerating supported chains, explaining that token may be a symbol, a 0x contract address, or native, and that amount is in token units. It stops short of stating precision/decimals handling or address-format requirements.

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 — 'Token transfer preflight (GO/REVIEW/BLOCK)' — and pins the scope to checking a transfer 'BEFORE an agent signs it.' It clearly differentiates itself from screening/allowance siblings by covering balance, gas, recipient type, sanctions, freezes and classic address mistakes in one pass.

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?

Gives a clear triggering condition: run this before signing a token or native transfer. It does not name alternative siblings (e.g., address screening or allowance checks) or state when this check is unnecessary, so routing is clear but not exhaustive.

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