Skip to main content
Glama

transfer_preflight

Read-onlyIdempotent

chainpeek: Preflight a USDC or USDT transfer: balance, gas, nonce, blacklist, recipient, simulation. For OFAC screening use check_sanctions; for a wallet's past pulls use check_wallet_drain. Returns a verdict (pass, warn or fail) for one planned ERC-20 transfer, with a row per check in checks (token balance, gas balance, pending nonce, issuer blacklist for sender and recipient, paused, recipient sanity, address-poisoning lookalike, simulated transfer(to, amount) with its revert reason, decimals and raw amount) and the non-passing ones in reasons. Read-only: nothing is signed or sent. A part that cannot be read is not_checked with a reason (verdict warn); a token without the blacklist function is not_available, not a fail. Lookalike check on Ethereum and Base only. Bad input is a 422 (not charged). Typically 1-4 s. Price: USD 0.01. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/gas-price-api.html

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>",
      "token": "<token>",
      "from": "<from>",
      "to": "<to>",
      "amount": "<amount>"
    },
    "name": "transfer_preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe recipient (0x + 40 hex).
fromYesThe sending wallet (0x + 40 hex).
chainYesethereum, base, polygon, bnb or arbitrum.
tokenYesUSDC, USDT (the chain's native issuer contract) or an ERC-20 contract address.
amountYesAmount in token units as a positive decimal string, e.g. "250.5" (not raw units).

Output Schema

NameRequiredDescriptionDefault
toNo
fromNo
noteNo
blockNo
chainNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
tokenNo
amountNo
checksNo
limitsNo
reasonsNo
verdictNo
budget_sNo
read_onlyNo
amount_rawNo
elapsed_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedInput schema / properties / amount / title
      Removed value: -"Amount"
    • removedInput schema / properties / chain / title
      Removed value: -"Chain"
    • removedInput schema / properties / from / title
      Removed value: -"From"
    • removedInput schema / properties / to / title
      Removed value: -"To"
    • removedInput schema / properties / token / title
      Removed value: -"Token"
    • removedInput schema / title
      Removed value: -"transfer_preflightArguments"
    • removedOutput schema / properties / checks / items
      Removed value: -{
      -  "properties": {
      -    "amount": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "amount_raw": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "balance": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "balance_raw": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "code": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "decimals": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "estimated_fee": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "gas_price_gwei": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "gas_units": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "id": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "message": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "native_balance": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "native_symbol": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "nonce_latest": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "nonce_pending": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "recipient_type": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "revert_reason": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "revert_selector": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "risk": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "status": {
      -      "enum": [
      -        "pass",
      -        "warn",
      -        "fail",
      -        "not_checked",
      -        null
      -      ],
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / limits / items
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / reasons / items
      Removed value: -{
      -  "properties": {
      -    "check": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "message": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "status": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / token / properties
      Removed value: -{
      -  "address": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "decimals": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "symbol": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
  2. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources