Skip to main content
Glama

evm_create_nft_with_ipfs

Upload an image and ERC721 metadata to IPFS, then return the metadata URI ready for minting. Prepares complete NFT assets for on-chain minting.

Instructions

Create complete NFT with automatic IPFS upload for image and metadata.

End-to-end NFT asset creation: uploads image to IPFS, creates ERC721 metadata JSON with image reference, uploads metadata to IPFS. Returns metadata URI ready for minting with evm_mint_nft.

CRITICAL RULES:

  • Requires PINATA_API_KEY in environment

  • Uploads image first, then metadata

  • Returns metadata URI for minting

  • Does NOT mint on-chain (use evm_mint_nft after)

  • Image can be URL or local path

PARAMETERS:

  • imageUrl: Image URL to upload (optional)

    • HTTP/HTTPS URL to image file

    • Mutually exclusive with imagePath

  • imagePath: Local image path (optional)

    • Absolute path to local image file

    • Mutually exclusive with imageUrl

  • name: NFT name (required)

    • Display name for the NFT

  • description: NFT description (required)

    • Detailed description of the NFT

  • attributes: NFT traits (optional)

    • Array of {trait_type, value} objects

    • Standard ERC721 metadata format

  • external_url: External URL (optional)

    • Link to external website

  • ipfsApiKey: IPFS API key (optional)

    • Overrides PINATA_API_KEY env var

EXAMPLES: ✅ Create from URL: {imageUrl: "https://example.com/art.png", name: "Cool NFT", description: "My first NFT"}

✅ Create from local file: {imagePath: "/Users/me/art.jpg", name: "Local Art", description: "Uploaded from disk"}

✅ With attributes: {imageUrl: "https://example.com/art.png", name: "Rare NFT", description: "Limited edition", attributes: [{"trait_type": "Rarity", "value": "Legendary"}]}

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: • image.ipfsHash: Image IPFS CID • image.uri: ipfs://... URI • image.gatewayUrl: Public IPFS gateway URL • metadata.ipfsHash: Metadata IPFS CID • metadata.uri: ipfs://... URI (use this for minting!) • metadata.gatewayUrl: Public metadata URL

COMMON MISTAKES:

  • Not setting PINATA_API_KEY environment variable

  • Trying to provide both imageUrl and imagePath

  • Using metadata URI instead of just the hash

  • Forgetting to mint after creating assets

USE CASES:

  • Complete NFT creation workflow

  • Prepare NFT for minting

  • Upload art with metadata

  • Create NFT collection assets

  • Automated NFT generation

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>"
    },
    "name": "evm_create_nft_with_ipfs"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNFT name
imageUrlNoURL of image to upload to IPFS
imagePathNoLocal path to image file
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

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the key traits: a required PINATA_API_KEY environment variable, ordered side effects on IPFS, that nothing is written on-chain, and the exact output fields including the metadata URI to reuse. It stops short of covering failure behavior (bad URL, unsupported image type, upload errors) or any rate/quotas.

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 (purpose, rules, params, examples) is well front-loaded and sectioned, but a large fraction of the text is irrelevant to an IPFS-upload tool: a 7-chain gas-cost briefing, testnet faucet notes, chain-by-chain gas advice, and Linux package-manager notes. The gas/chain material is actively misleading here because this tool performs no on-chain transaction.

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 7-parameter tool with no annotations and no output schema, the description supplies the missing pieces an agent needs: the credential prerequisite, the mutual exclusion between the two image sources, worked examples, and a full OUTPUT STRUCTURE listing so the returned URIs are interpretable. Only error handling and image constraints (size/format) are absent.

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 baseline would be 3, but the description adds genuine meaning beyond the schema: it declares imageUrl and imagePath mutually exclusive, explains the {trait_type, value} shape for attributes, and states that ipfsApiKey overrides the PINATA_API_KEY environment variable — none of which the schema conveys. It also flags imageUrl as accepting an HTTP/HTTPS URL and imagePath as absolute.

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?

States a specific verb and resource (end-to-end NFT creation with IPFS upload for image and metadata) and enumerates the exact sequence: upload image, build ERC721 metadata JSON, upload metadata, return URI. It also explicitly bounds the scope with 'Does NOT mint on-chain (use evm_mint_nft after)', which separates it from the mint sibling.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (prepare NFT for minting) and when-not (does not mint; call evm_mint_nft afterwards), plus a 'COMMON MISTAKES' block naming the failure modes (missing PINATA_API_KEY, supplying both imageUrl and imagePath). The hand-off to the minting tool is stated unambiguously.

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