Skip to main content
Glama

evm_transfer_token

Transfer ERC20 tokens from a wallet to another address on any supported EVM chain, with automatic decimal conversion and transaction broadcasting.

Instructions

Transfer ERC20 tokens from your wallet to another address on any EVM chain.

Executes the ERC20 transfer() method, broadcasting transaction to blockchain. Requires gas payment in native token (ETH, POL, etc.) to execute. Amount is automatically converted to raw units using token decimals.

CRITICAL RULES:

  • Requires gas in native token (check balance with evm_get_balance first)

  • Amount is in human-readable units ("100" = 100 tokens, not raw units)

  • Sender must have sufficient token balance (check with evm_get_token_balance)

  • Transaction is irreversible once confirmed

  • Recipient address must be valid (use evm_validate_address to check)

  • Private key grants full control - NEVER share or log it

PARAMETERS:

  • chain: EVM chain to execute transaction on (required)

    • Must have gas in native token on this chain

    • Token must be deployed on this specific chain

    • Gas costs vary by chain (see CHAIN_GUIDANCE)

  • tokenAddress: ERC20 token contract address (required)

    • Format: 0x followed by 40 hex characters

    • Must be valid ERC20 contract on specified chain

    • Examples: USDC, USDT, DAI, WETH, custom tokens

  • toAddress: Recipient address (required)

    • Format: 0x followed by 40 hex characters

    • Can be EOA (user wallet) or contract address

    • VERIFY CAREFULLY - transactions are irreversible

  • amount: Amount to transfer in token units (required)

    • Human-readable format: "100" = 100 tokens

    • Automatically converted using token decimals

    • Examples: "100" (100 USDC), "0.5" (half token), "1000000"

  • privateKey: Sender's private key (required, KEEP SECRET)

    • Format: 0x followed by 64 hex characters

    • Must be key for address that holds tokens

    • Never expose, share, or log this value

EXAMPLES: ✅ Transfer 100 USDC on Polygon (low gas): {chain: "polygon", tokenAddress: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174", toAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", amount: "100", privateKey: "0xac0974..."}

✅ Transfer 0.5 WETH on Arbitrum: {chain: "arbitrum", tokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", toAddress: "0x...", amount: "0.5", privateKey: "0x..."}

✅ Transfer custom token on BSC: {chain: "bsc", tokenAddress: "0x...", toAddress: "0x...", amount: "1000", privateKey: "0x..."}

❌ Invalid - insufficient gas: {chain: "ethereum", ...} // No ETH for gas

❌ Invalid - insufficient token balance: {chain: "polygon", amount: "10000", ...} // Only have 100 USDC

SUPPORTED EVM CHAINS (7 networks): • ethereum (Sepolia) - EIP-1559 enabled, ~12s blocks, moderate gas costs • polygon (Amoy) - Low fees, fast finality (~2s), layer 2 • avalanche (Fuji C-Chain) - Sub-second finality, dynamic fees • bsc (BNB Testnet) - 3s blocks, low gas costs, Binance ecosystem • arbitrum (Sepolia) - Optimistic rollup, low fees, Ethereum security • base (Sepolia) - Coinbase layer 2, EIP-1559, low fees • worldchain (World Sepolia) - World Network testnet, EIP-1559

CRITICAL GAS CONSIDERATIONS:

  • Ethereum: High gas costs, use gas oracle for timing

  • Polygon/BSC: Very low gas, safe for frequent transactions

  • Arbitrum/Base: L2 optimizations, ~10-50x cheaper than Ethereum

  • Avalanche: Dynamic fees, can spike during congestion

  • Always check gas price before executing transactions

TESTNET TOKENS: All chains use testnet tokens with NO REAL VALUE. Faucets available for all supported networks.

OUTPUT STRUCTURE: • success: Boolean indicating transaction success • chain: Chain where transaction executed • transactionHash: Transaction hash (0x... - use to track on block explorer) • from: Sender address (derived from privateKey) • to: Recipient address • tokenAddress: Token contract address • amount: Amount transferred (formatted) • gasUsed: Gas consumed by transaction • executionTime: Time taken in milliseconds

COMMON MISTAKES:

  • Not checking sender has sufficient token balance first

  • Forgetting to have native token (ETH/POL) for gas

  • Using raw units instead of human-readable amount

  • Wrong recipient address (DOUBLE CHECK - irreversible)

  • Using token address from wrong chain

  • Not waiting for transaction confirmation

USE CASES:

  • Send tokens to another user or exchange

  • Transfer tokens between your own wallets

  • Pay for services or products with tokens

  • Distribute tokens to multiple recipients

  • Move tokens before depositing to DeFi protocol

TRANSACTION FLOW:

  1. Check sender token balance (evm_get_token_balance)

  2. Check sender has gas (evm_get_balance)

  3. Estimate gas cost (evm_estimate_gas - optional)

  4. Execute transfer (this tool)

  5. Wait for confirmation (monitor transactionHash)

GAS REQUIREMENTS:

  • Token transfer typically costs 50,000-65,000 gas

  • Ethereum Sepolia: ~0.001-0.002 ETH

  • Polygon: ~0.00005 POL (very cheap)

  • BSC: ~0.0001 BNB

  • Arbitrum/Base: ~0.0001 ETH

SECURITY NOTES:

  • Verify recipient address carefully (no undo)

  • Never transfer to zero address (0x0000...0000)

  • Check token contract is legitimate

  • Start with small test amount on unfamiliar chains

  • Keep private keys secure and never share

Running on Linux.

LINUX-SPECIFIC NOTES:

  • Package manager: apt (Ubuntu/Debian), yum (RHEL/CentOS), or pacman (Arch)

  • Python 3 is typically 'python3' command

  • GNU tools are standard

  • Use 'xdg-open' command to open files/applications

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>",
      "tokenAddress": "<tokenAddress>",
      "toAddress": "<toAddress>",
      "amount": "<amount>",
      "privateKey": "<privateKey>"
    },
    "name": "evm_transfer_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesEVM chain to execute on
amountYesAmount to transfer (in token units, e.g., "100" for 100 tokens)
toAddressYesRecipient address (0x...)
privateKeyYesSender private key (0x...)
tokenAddressYesERC20 token contract address (0x...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses irreversibility, required native-token gas with per-chain cost estimates, that amounts are auto-converted using token decimals, that all chains are testnets with no real value, and the full output field list including transactionHash and gasUsed. It also flags private-key sensitivity and the zero-address hazard, which are genuine behavioral constraints beyond the schema.

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

Conciseness2/5

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

The purpose is front-loaded and headers aid scanning, but the text is heavily redundant: gas requirements appear in CRITICAL RULES, GAS CONSIDERATIONS, GAS REQUIREMENTS and TRANSACTION FLOW; irreversibility is warned three times; COMMON MISTAKES restates the critical rules; and the output fields are listed twice in spirit. A large share of the length could be cut without losing information.

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 5-required-parameter, no-annotation, no-output-schema mutation tool, the definition covers everything an agent needs: preconditions, unit semantics, per-chain gas context, return fields, failure modes, and the fact that all chains are testnets. Nothing essential to correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the PARAMETERS section adds real meaning: the amount is human-readable and auto-converted to raw units via token decimals, the token contract must be deployed on the specified chain, and the private key must correspond to the token-holding address. Those are semantic constraints the terse schema descriptions do not convey.

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?

The first sentence states a specific verb, resource and scope: transfer ERC20 tokens from your wallet to another address on any EVM chain. The ERC20 qualifier distinguishes it from native-token and NFT transfer siblings without needing to name them, and it adds that it executes transfer() and broadcasts a transaction.

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?

It gives an explicit TRANSACTION FLOW (check token balance, check gas, estimate, execute, monitor) and names the prerequisite tools evm_get_token_balance, evm_get_balance, evm_estimate_gas and evm_validate_address. It also lists use cases and invalid scenarios, but it never explicitly states when to prefer a sibling (e.g., native-token transfer) instead of this tool, so it stops short of a full when/when-not statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools