Skip to main content
Glama

evm_deploy_token

Deploy a customizable ERC20 token to supported EVM chains by setting its name, symbol, and initial supply; the deployer receives all tokens and must provide gas for contract creation.

Instructions

Deploy a new ERC20 token contract with customizable name and symbol to any EVM chain.

Creates and deploys a gas-optimized ERC20 token contract with YOUR chosen name and symbol. Decimals fixed at 18 (standard). Deployer address becomes the initial token holder. Requires significant gas for contract deployment.

CRITICAL RULES:

  • Contract deployment requires MORE gas than regular transactions (200,000-500,000 gas)

  • Deployer address receives all initial supply tokens

  • Token contract address is deterministic (based on deployer address + nonce)

  • Once deployed, contract code is immutable on blockchain

  • Name and symbol cannot be changed after deployment

  • Decimals hardcoded to 18 for gas efficiency and standardization

  • Implementation is minimal but fully functional and tested

PARAMETERS:

  • chain: EVM chain to deploy token on (required)

    • Deployment gas costs vary significantly by chain

    • Ethereum: Very expensive (~$50-100 at peak)

    • Polygon/BSC: Cheap ($0.10-0.50)

    • Choose testnet chains for experimentation

  • name: Token name (required)

    • Human-readable name (e.g., "My Project Token")

    • Displayed in wallets and explorers

    • Cannot be changed after deployment

    • Examples: "USD Coin", "Wrapped Ether", "My Token"

  • symbol: Token ticker symbol (required)

    • Short identifier (typically 3-5 characters)

    • All caps by convention (e.g., "USDC", "WETH", "MTK")

    • Displayed in trading interfaces

    • Cannot be changed after deployment

  • initialSupply: Initial token supply (required)

    • Decimals fixed at 18 (standard, same as ETH)

    • Human-readable format (e.g., "1000000" = 1 million tokens)

    • All tokens minted to deployer address

    • Consider tokenomics (total supply, inflation, etc.)

    • Example: "1000000000" (1 billion tokens)

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

    • Format: 0x followed by 64 hex characters

    • Must have sufficient native token for gas

    • Becomes contract deployer and initial token holder

    • Never expose, share, or log this value

EXAMPLES: ✅ Deploy custom token on Polygon testnet: {chain: "polygon", name: "Test USD Coin", symbol: "TUSDC", initialSupply: "1000000", privateKey: "0xac0974..."}

✅ Deploy project token on BSC testnet: {chain: "bsc", name: "My Project Token", symbol: "MPT", initialSupply: "1000000000", privateKey: "0x..."}

✅ Deploy on Arbitrum: {chain: "arbitrum", name: "Wrapped Test Bitcoin", symbol: "WTBTC", initialSupply: "21000000", privateKey: "0x..."}

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

❌ Invalid - symbol too long: {symbol: "MYLONGTOKEN"} // Keep under 5 chars

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 deployment success • chain: Chain where token deployed • deployment.transactionHash: Deployment transaction hash • deployment.tokenAddress: New token contract address • deployment.deployer: Deployer address (from privateKey) • token.name: Token name (verified from contract) • token.symbol: Token symbol (verified) • token.decimals: Always 18 (hardcoded) • token.totalSupply: Initial supply (formatted) • verification.allChecks: Boolean confirming deployment matches parameters • gasUsed: Gas consumed (usually 150,000-300,000) • executionTime: Time taken in milliseconds

COMMON MISTAKES:

  • Not having enough gas for deployment (check balance first with evm_get_balance)

  • Using mainnet for testing (ALWAYS use testnet chains)

  • Not saving token contract address (critical for all future token operations)

  • Typos in name/symbol (cannot change after deployment - double check!)

  • Forgetting decimals are fixed at 18 (adjust accounting if needed)

USE CASES:

  • Launch new cryptocurrency or token

  • Create project governance token

  • Deploy loyalty or reward points system

  • Test token economics on testnet

  • Create wrapped/synthetic assets

DEPLOYMENT GAS COSTS (approximate):

  • Ethereum Sepolia: ~0.005-0.01 ETH (testnet)

  • Polygon Amoy: ~0.001 POL (very cheap)

  • BSC Testnet: ~0.002 BNB

  • Arbitrum Sepolia: ~0.001 ETH

  • Avalanche Fuji: ~0.002 AVAX

POST-DEPLOYMENT STEPS:

  1. Save token contract address (critical!)

  2. Verify contract on block explorer (optional but recommended)

  3. Add token to wallet (import using contract address)

  4. Distribute tokens to users (evm_transfer_token)

  5. Set up liquidity if needed (DEX operations)

SECURITY NOTES:

  • Test on testnet first before mainnet deployment

  • Verify token name/symbol/decimals before deploying

  • Ensure sufficient gas (deployment costs more than transfers)

  • Contract code is immutable - cannot fix bugs after deployment

  • Consider adding pausable/mintable features (requires custom contract)

LIMITATIONS:

  • Decimals fixed at 18 (cannot be customized)

  • No advanced features (additional minting, burning, pausing)

  • Basic ERC20 implementation (standard transfer/approve/allowance)

  • Not audited - recommended for testnet use only

  • Gas-optimized minimal bytecode for lower deployment costs

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>",
      "name": "<name>",
      "symbol": "<symbol>",
      "initialSupply": "<initialSupply>",
      "privateKey": "<privateKey>"
    },
    "name": "evm_deploy_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesToken name (e.g., "My Token")
chainYesEVM chain to deploy on
symbolYesToken symbol (e.g., "MTK")
mintableNoDeploy mintable/burnable token using OpenZeppelin (default: false)
privateKeyYesDeployer private key (0x...)
initialSupplyYesInitial token supply (decimals fixed at 18)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden well by disclosing gas requirements, immutability, deployer-as-initial-holder behavior, private-key handling, limitations, and post-deployment implications. However, its statement that there are no minting features conflicts with the schema's mintable parameter.

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, but the description is bloated with repeated gas-cost sections, multiple examples, post-deployment steps, and irrelevant Linux-specific notes. Much of this does not earn its place in a tool definition.

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

Completeness4/5

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

For a complex deployment operation with no output schema or annotations, the description is largely complete: it includes output fields, gas expectations, security notes, limitations, and examples. It is weakened by the mintable inconsistency and unrelated Linux environment notes.

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

Parameters3/5

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

Schema coverage is 100%, so baseline is 3. The description adds rich meaning for chain, name, symbol, initialSupply, and privateKey, but it never documents the optional mintable parameter and instead implies minting is unavailable, creating a material inconsistency.

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 and resource: deploy a new ERC20 token contract. It also clarifies custom name/symbol and any EVM chain, which distinguishes it from NFT/contract deployment and token-management siblings.

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 contexts via USE CASES, recommends testnets for experimentation, and points to evm_get_balance before deployment and evm_transfer_token afterward. It lacks explicit when-not guidance versus siblings like evm_deploy_contract or evm_create_token_safe.

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