Skip to main content
Glama

evm_mint_nft

Mints new ERC721 NFTs with an optional metadata URI on seven EVM test networks; requires a unique token ID and minter role on the contract.

Instructions

Mint new ERC721 NFT with metadata URI. Requires minter role on contract.

CRITICAL RULES:

  • Must have MINTER_ROLE or be owner

  • tokenId must be unique (not already minted)

  • tokenUri links to JSON metadata (IPFS recommended)

  • Requires gas for transaction

PARAMETERS:

  • contractAddress: NFT collection (required)

  • to: Recipient address (required)

  • tokenId: Unique ID as string (required)

  • tokenUri: Metadata URI (optional)

  • privateKey: Minter key (required)

EXAMPLES: ✅ Mint NFT #1 with IPFS metadata: {chain: "polygon", contractAddress: "0xNFT...", to: "0x742d35...", tokenId: "1", tokenUri: "ipfs://QmABC...", privateKey: "0x..."}

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.

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_mint_nft"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesRecipient address (0x...)
chainYesEVM chain to execute on
tokenIdYesToken ID to mint
tokenUriNoOptional: Metadata URI (IPFS, HTTP, or base64)
privateKeyYesMinter private key (0x...)
contractAddressYesNFT contract address (0x...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description must carry the full load and does disclose meaningful behavior: authorization requirement (MINTER_ROLE/owner), uniqueness constraint on tokenId, that a gas-paying transaction is executed, and that all chains are testnets with no real value. It omits what the call returns (e.g., tx hash) and says nothing about the sensitivity/handling of the supplied privateKey.

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?

Purpose and critical rules are front-loaded and well-sectioned, and the example clarifies argument shapes. But the per-chain gas essay and the 'Running on Linux' / apt-yum-pacman section are irrelevant filler for an NFT mint tool and dilute the signal considerably.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter, 5-required mutation tool with no annotations and no output schema, the description covers prerequisites and parameter meaning well. It still leaves the caller guessing about return value, confirmation/finality behavior, and how the private key is consumed, which matters for an irreversible on-chain write.

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 baseline is 3, but the description adds real meaning: tokenId must not already be minted, tokenUri should point to JSON metadata with IPFS recommended, and privateKey is the minter key. That is substantive semantics beyond the terse schema strings.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Mint new ERC721 NFT with metadata URI', and the ERC721 qualifier implicitly separates it from the ERC20-flavored evm_mint_token sibling. It never names a sibling or explicit boundary, so it falls short of a 5.

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

Usage Guidelines3/5

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

The CRITICAL RULES block gives real preconditions (MINTER_ROLE or owner, unique tokenId, gas required), which tells the agent when the call will succeed. However, there is no guidance on choosing this over related tools such as evm_create_nft_with_ipfs, evm_deploy_nft, or evm_mint_token, so usage is implied rather than directed.

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