Skip to main content
Glama

evm_create_nft_metadata

Creates ERC721 NFT metadata JSON from an IPFS image URI, uploads it to IPFS, and returns the metadata URI needed for minting.

Instructions

Create NFT metadata JSON and upload to IPFS.

Creates ERC721 metadata JSON with image reference, uploads to IPFS. Use after uploading image with evm_upload_image_to_ipfs. Returns metadata URI for minting.

CRITICAL RULES:

  • Requires PINATA_API_KEY in environment

  • imageUri must be ipfs:// format

  • Returns metadata URI for minting

PARAMETERS:

  • name: NFT name (required)

  • description: NFT description (required)

  • imageUri: Image IPFS URI (required)

    • Format: "ipfs://QmHash..."

  • attributes: Traits (optional)

  • external_url: External link (optional)

  • ipfsApiKey: Override API key (optional)

EXAMPLES: ✅ Create metadata: {name: "My NFT", description: "Cool art", imageUri: "ipfs://QmABC123..."}

✅ With attributes: {name: "Rare NFT", description: "Limited", imageUri: "ipfs://QmABC...", attributes: [{"trait_type": "Rarity", "value": "Epic"}]}

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: • metadata: Full metadata object • ipfsHash: Metadata IPFS CID • uri: ipfs://... (use for minting) • gatewayUrl: Public URL

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": {
      "name": "<name>",
      "description": "<description>",
      "imageUri": "<imageUri>"
    },
    "name": "evm_create_nft_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNFT name
imageUriYesIPFS URI of the image (ipfs://...)
attributesNoNFT attributes/traits
ipfsApiKeyNoAPI key for IPFS service (optional)
descriptionYesNFT description
external_urlNoExternal URL for the NFT

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description does carry useful behavioral facts: it requires PINATA_API_KEY in the environment, performs a network upload to IPFS, and returns a metadata URI plus gateway URL. However, roughly two-thirds of the text (7-chain list, gas considerations, testnet faucets, Linux package-manager notes) is irrelevant to a non-transactional metadata upload and could mislead an agent into expecting gas costs or a chain selection parameter. It never states that no on-chain transaction occurs.

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 core value proposition is front-loaded in the first two lines, but the body is heavily padded with copy-pasted chain, gas, and OS boilerplate that has no bearing on this tool. Signal-to-noise is poor and a reader must filter hard to find the usable constraints.

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?

Although there is no output schema, the description supplies an explicit output structure (metadata, ipfsHash, uri, gatewayUrl), which is exactly what an agent needs to chain into a mint call. The main gap is failing to clarify that this is an off-chain operation with no transaction or gas, despite the surrounding gas guidance.

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 the schema already documents all six parameters; the description largely echoes them. It does reinforce the required ipfs:// format for imageUri and provide a worked attributes example, but adds no real meaning for ipfsApiKey beyond the schema's own text (including no clarification of how it relates to PINATA_API_KEY).

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?

"Create NFT metadata JSON and upload to IPFS" states a specific verb and resource, and the description explicitly positions it relative to evm_upload_image_to_ipfs ("Use after uploading image") and evm_mint_nft ("Returns metadata URI for minting"). An agent can distinguish it from siblings without opening a schema.

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?

Gives a clear execution order and names the prerequisite sibling: upload the image first with evm_upload_image_to_ipfs, then use the returned URI here. It does not state explicit exclusions (e.g., when to use evm_create_nft_with_ipfs instead of this two-step path), which keeps it below 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