Skip to main content
Glama

evm_transfer_nft

Transfer ERC721 NFTs to another address with automatic ownership verification. Transaction fails if sender does not own the token.

Instructions

Transfer ERC721 NFT to another address with automatic ownership verification.

Executes safeTransferFrom on NFT contract. Verifies sender owns token before transfer. Recipient can be EOA or contract implementing IERC721Receiver. Transaction fails if not token owner.

CRITICAL RULES:

  • Must own the NFT being transferred

  • Requires gas in native token

  • Cannot transfer to zero address (0x0)

  • Recipient contract must implement IERC721Receiver

  • Approved operators can transfer on owner's behalf

  • Irreversible once confirmed

PARAMETERS:

  • chain: EVM chain to execute on (required)

    • Must have gas in native token

  • contractAddress: NFT collection address (required)

    • Must be valid ERC721 contract

    • Format: "0x..." (42 characters)

  • to: Recipient address (required)

    • Can be EOA or contract

    • Cannot be zero address

    • Format: "0x..." (42 characters)

  • tokenId: Token ID to transfer (required)

    • Must be owned by sender

    • Format: string (not number for large IDs)

  • privateKey: Owner's private key (required)

    • Must own the token OR be approved operator

    • Format: "0x..." (64 hex characters)

EXAMPLES: ✅ Transfer NFT #42 to collector: {chain: "polygon", contractAddress: "0x7227E4D7...", to: "0x742d35Cc...", tokenId: "42", privateKey: "0xac0974..."}

✅ Transfer rare NFT on Ethereum: {chain: "ethereum", contractAddress: "0xBC4CA0E...", to: "0x8626f6940...", tokenId: "8762", privateKey: "0xac0974..."}

❌ Invalid - not token owner: {chain: "polygon", contractAddress: "0x7227E4D7...", to: "0x742d35Cc...", tokenId: "100", privateKey: "0xwrongkey..."}

❌ Invalid - zero address recipient: {chain: "polygon", contractAddress: "0x7227E4D7...", to: "0x0000000000000000000000000000000000000000", tokenId: "42", privateKey: "0xac0974..."}

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: Transfer confirmation • transactionHash: On-chain transaction hash • from: Previous owner address • to: New owner address • tokenId: Transferred token ID • gasUsed: Gas consumed in transaction

COMMON MISTAKES:

  • Not verifying ownership before transfer attempt

  • Transferring to contract without IERC721Receiver

  • Using wrong private key (not owner or approved)

  • Insufficient gas in wallet

  • Transferring to zero address

USE CASES:

  • Sell NFT to buyer after payment

  • Gift NFT to another wallet

  • Move NFT to cold storage

  • Transfer between own wallets

  • Execute marketplace sale

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>",
      "contractAddress": "<contractAddress>",
      "to": "<to>",
      "tokenId": "<tokenId>",
      "privateKey": "<privateKey>"
    },
    "name": "evm_transfer_nft"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesRecipient address (0x...)
chainYesEVM chain to execute on
tokenIdYesToken ID to transfer
privateKeyYesOwner private key (0x...)
contractAddressYesNFT 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 provided, the description carries the full behavioral burden and does so well: it discloses safeTransferFrom execution, ownership verification, recipient contract requirements, gas prerequisites, operator allowances, zero-address rejection, and irreversibility. It also describes failure conditions and the resulting transaction fields.

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

Conciseness3/5

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

The definition is front-loaded and organized into useful sections, but it is substantially bloated with repeated warnings, broad gas commentary, common mistakes, use cases, and completely irrelevant Linux-specific notes. Several sections repeat points already covered elsewhere, so it is clear but not concise.

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 five-parameter mutation tool with no annotations and no output schema, the description is highly complete: it covers prerequisites, chain behavior, failure modes, output fields, examples, and parameter constraints. An agent has enough information to decide whether and how to call it safely.

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%, so the schema already defines all five parameters, but the description adds meaningful constraints: valid ERC721 contract, non-zero recipient, string token IDs, and the private key needing owner or approved-operator authority. The supported-chain list also gives context beyond the bare enum.

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 description states a specific verb and resource: transfer an ERC721 NFT, using safeTransferFrom with ownership verification. The ERC721/NFT framing and the named operation distinguish this from native or fungible-token transfers even without naming a sibling tool.

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?

The description gives clear usage context through use cases such as selling, gifting, moving to cold storage, and transferring between own wallets, plus when-not conditions in the critical rules. It does not explicitly route the agent to an alternative sibling transfer tool, so it stops short of a 5.

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