Skip to main content
Glama

evm_generate_nft_image

Generate NFT images from AI prompts, existing URLs, or local files and return them ready for IPFS upload.

Instructions

Generate NFT image using AI, existing URL, or local file - unified tool supporting 3 input modes.

CRITICAL RULES:

  • Provide EXACTLY ONE of: prompt (AI), imageUrl (URL), or imagePath (file)

  • AI generation: Free Pollinations.ai (default) or paid services (FLUX, Stable Diffusion, Playground)

  • Returns image URL or path ready for IPFS upload

  • No blockchain interaction - pure image preparation

THREE INPUT MODES:

MODE 1: AI Generation (Free or Paid)

  • prompt: Text description (required for AI mode)

  • style: artistic, realistic, cartoon, fantasy, cyberpunk, minimalist (optional)

  • service: pollinations (free), flux, stable-diffusion, playground (optional, default: pollinations)

  • aspectRatio: 1:1, 16:9, 9:16, 4:3, 3:4 (optional, default: 1:1)

  • quality: standard, high, ultra (optional)

  • seed: Number for reproducible results (optional)

MODE 2: Existing URL

  • imageUrl: URL to existing image (required for URL mode)

  • Validates URL format, returns for IPFS upload

MODE 3: Local File

  • imagePath: Absolute path to local image file (required for file mode)

  • Returns path for IPFS upload

EXAMPLES:

✅ Free AI Generation (Pollinations): {prompt: "Cyberpunk cat with neon eyes", style: "cyberpunk"} → Uses Pollinations.ai (free, no API key needed)

✅ Paid AI Generation (FLUX): {prompt: "Photorealistic mountain landscape", service: "flux", quality: "ultra"} → Uses FLUX.1 (requires FLUX_API_KEY env var)

✅ Existing URL: {imageUrl: "https://example.com/artwork.png"} → Validates and prepares for IPFS upload

✅ Local File: {imagePath: "/Users/me/Desktop/nft-art.jpg"} → Prepares local file for IPFS upload

AI SERVICES: • Pollinations.ai - FREE, no API key, unlimited use • FLUX.1 - Requires FLUX_API_KEY + FLUX_MODEL_VERSION • Stable Diffusion - Requires HUGGINGFACE_API_KEY • Playground AI - Requires PLAYGROUND_API_KEY

OUTPUT STRUCTURE: • mode: ai_generation, existing_url, or local_file • imageUrl: Direct URL (AI or existing) • imagePath: Local file path (file mode) • model: AI service used • cost: Generation cost ($0 for Pollinations) • suggestedFilename: Recommended filename • nextSteps: What to do with the image

WORKFLOW:

  1. Generate/select image (this tool)

  2. Upload to IPFS: evm_create_nft_with_ipfs

  3. Deploy NFT contract: evm_deploy_nft

  4. Mint NFT: evm_mint_nft

COMMON MISTAKES:

  • Providing multiple input modes (only ONE allowed)

  • Expecting blockchain interaction (this is image-only)

  • Not setting API keys for paid services

  • Using relative paths instead of absolute paths

USE CASES:

  • Generate AI art for NFT collections

  • Use existing artwork from URLs

  • Upload local digital art files

  • Test NFT workflows with free images

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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "evm_generate_nft_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoAI generation: Random seed for reproducible results
modelNoAI generation: Specific model name (e.g., flux, turbo)
styleNoAI generation: Art style
promptNoAI generation: Text description of image to generate
qualityNoAI generation: Quality level (default: high)
serviceNoAI generation: Service to use (default: pollinations - free)
imageUrlNoExisting URL: URL of image to use
imagePathNoLocal file: Absolute path to image file
aspectRatioNoAI generation: Image aspect ratio (default: 1:1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/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 mostly succeeds: it discloses free vs paid service paths, the exact env vars each paid service needs, that Pollinations is free/unlimited, that output is an image URL or path, and that no blockchain call occurs. It stops short of stating failure/timeout behavior or rate limits for the paid tiers.

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?

Well front-loaded with CRITICAL RULES and an output block, but the mode sections largely restate the schema properties, and the four EXAMPLES repeat the same parameter descriptions a third time. The appended LINUX-SPECIFIC NOTES about apt/yum/pacman and xdg-open are irrelevant to this tool and dilute the payload.

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 9-parameter, three-mode tool with no output schema, the description supplies an explicit OUTPUT STRUCTURE listing every returned field and a numbered workflow, which an agent needs to chain into IPFS upload. Slight incompleteness in not covering error conditions or what happens when a requested paid service lacks its key.

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 already 100%, so the baseline is 3, but the description adds real meaning: service-to-API-key mapping, seed as reproducibility control, style/aspectRatio/quality defaults, and the requirement that imagePath be an absolute path. Only the model parameter gets no extra explanation beyond the schema text.

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?

Opens with a specific verb and resource ("Generate NFT image") and immediately states the three supported input modes, which is the defining trait versus siblings like evm_upload_image_to_ipfs or evm_create_nft_with_ipfs. The "No blockchain interaction - pure image preparation" line draws a sharp boundary an agent can act on.

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?

Explicitly says when to use each of the three modes, which parameter selects each, and enumerates common mistakes including supplying multiple modes. The WORKFLOW block names the downstream siblings (evm_create_nft_with_ipfs, evm_deploy_nft, evm_mint_nft) in order, so routing is unambiguous.

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