Skip to main content
Glama

evm_mint_token

Mint new ERC20 tokens to a specified address on an EVM chain, increasing total supply. Use it for airdrops, rewards, or testing when the token contract grants you minter privileges.

Instructions

Mint (create) additional tokens and add them to circulation (requires minter role on token contract).

Creates new tokens from nothing and sends them to specified address, increasing total supply. Only works if token contract implements minting functionality and caller has minter privileges.

CRITICAL RULES:

  • Token contract MUST support minting (not all ERC20 tokens do)

  • Caller MUST have minter role or be contract owner

  • Increases total token supply (inflationary)

  • Transaction is irreversible once confirmed

  • Most standard tokens (USDC, USDT) do NOT allow public minting

  • Works mainly with custom tokens you deployed

PARAMETERS:

  • chain: EVM chain where token is deployed (required)

    • Token must support minting on this chain

    • Requires gas payment in native token

  • tokenAddress: Mintable token contract address (required)

    • Format: 0x followed by 40 hex characters

    • Must be token with mint() function

    • Typically tokens you deployed yourself

    • Public tokens (USDC, DAI) don't allow minting

  • toAddress: Recipient address for minted tokens (required)

    • Format: 0x followed by 40 hex characters

    • Can be any address (EOA or contract)

    • Often the minter's own address

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

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

    • Automatically converted using token decimals

    • No upper limit (careful with tokenomics)

    • Examples: "1000000", "100.5", "50"

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

    • Format: 0x followed by 64 hex characters

    • Must be address with MINTER_ROLE or owner

    • Usually contract deployer has this role

    • Never expose, share, or log this value

EXAMPLES: ✅ Mint 1000 tokens to your address (Polygon): {chain: "polygon", tokenAddress: "0xYourToken...", toAddress: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb", amount: "1000", privateKey: "0xac0974..."}

✅ Mint tokens for airdrop (BSC): {chain: "bsc", tokenAddress: "0x...", toAddress: "0xRecipient...", amount: "500", privateKey: "0x..."}

✅ Mint small amount for testing (Arbitrum): {chain: "arbitrum", tokenAddress: "0x...", toAddress: "0x...", amount: "10", privateKey: "0x..."}

❌ Invalid - no minter role: {privateKey: "0xRandomUser..."} // Not authorized

❌ Invalid - standard token doesn't support minting: {tokenAddress: "0xUSDC..."} // USDC doesn't allow public minting

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 minting success • chain: Chain where minting occurred • transactionHash: Mint transaction hash • tokenAddress: Token contract address • toAddress: Recipient of minted tokens • amount: Amount minted (formatted) • minter: Minter address (from privateKey) • newTotalSupply: Updated total supply after minting • gasUsed: Gas consumed by transaction • executionTime: Time taken in milliseconds

COMMON MISTAKES:

  • Trying to mint tokens you didn't deploy (access denied)

  • Not having minter role (transaction will fail)

  • Minting on wrong chain (token not deployed there)

  • Over-minting and destroying tokenomics

  • Not considering impact on token price (inflation)

USE CASES:

  • Airdrop tokens to community members

  • Reward program (mint tokens as rewards)

  • Gradual token distribution (vesting schedules)

  • Testing token functionality on testnet

  • Adjust supply based on demand (algorithmic tokens)

MINTING MECHANICS:

  1. Increases total supply by minted amount

  2. Credits recipient address with new tokens

  3. Dilutes existing token holders (inflation)

  4. No maximum limit (except uint256 max)

  5. Can be called multiple times

ACCESS CONTROL:

  • Token contract must have implemented access control

  • Common patterns:

    • Ownable: Only owner can mint

    • AccessControl: Addresses with MINTER_ROLE can mint

    • No access control: Anyone can mint (dangerous!)

TOKENOMICS IMPACT:

  • Minting increases supply (inflationary)

  • Can decrease token value if not managed

  • Should align with tokenomics model

  • Consider: emission schedule, max supply, utility

GAS COSTS:

  • Similar to token transfers (~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:

  • Protect minter private key carefully (can inflate supply)

  • Consider time-locking minting functions

  • Implement minting caps for safety

  • Test on testnet before mainnet minting

  • Monitor total supply after minting

CHECKING MINTER ROLE: Before attempting to mint, verify you have permission:

  1. Check if you're contract owner

  2. Check if you have MINTER_ROLE (AccessControl pattern)

  3. Attempt small test mint first

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

Input Schema

NameRequiredDescriptionDefault
chainYesEVM chain to execute on
amountYesAmount to mint (in token units)
toAddressYesRecipient address (0x...)
privateKeyYesMinter private key (0x...)
tokenAddressYesERC20 token contract address (0x...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/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 thoroughly: it discloses irreversibility, inflation of total supply, minter-role requirements, gas costs, access-control patterns, and output fields. It also warns about private-key sensitivity and tokenomics impact. This is unusually complete behavioral context for a destructive blockchain mutation.

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 definition is heavily overlong and repetitive, with multiple sections restating gas costs, tokenomics warnings, access-control notes, and minting mechanics. It also includes unrelated Linux-specific notes that do not help an agent invoke this tool. The front-loaded summary is useful, but the overall size and duplication hurt conciseness.

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 complex five-parameter blockchain mutation with no annotations and no output schema, the description is complete enough to invoke safely. It covers required permissions, chain support, parameter formats, failure modes, gas considerations, and even an output structure. The only excess is irrelevant Linux context, not a missing piece.

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?

Although schema description coverage is already 100%, the description adds substantial meaning beyond the schema: address formats, human-readable amount conversion using token decimals, the significance of the minter private key, and a detailed list of supported chains. It also provides concrete examples that clarify how the parameters work together.

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?

The description states a specific verb and resource: minting additional tokens and adding them to circulation. It clearly distinguishes minting from ordinary transfers by explaining that new tokens are created from nothing and total supply increases. It does not explicitly name sibling alternatives such as evm_transfer_token or evm_burn_token, so it falls just short of full sibling differentiation.

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 extensive when-to-use guidance through use cases, preconditions, common mistakes, and invalid examples such as lacking minter role or trying to mint USDC. It clearly states when the tool will fail and what access is required. It does not explicitly route the agent to alternative tools for moving or burning existing tokens.

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