Skip to main content
Glama

Edge AI x402 MCP

ai_generate_image

ai generate image; /v1/images/generate; $0.005 on Solana Mainnet.

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": {
      "prompt": "<prompt>"
    },
    "name": "ai_generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNo
promptYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, but it does contribute one genuinely useful behavioral fact: each call costs $0.005 paid on Solana Mainnet, signalling a metered, crypto-paid operation. It omits what payment setup is required, whether the charge is per call or per image, and what the call returns.

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?

The description is brief and front-loads the core action, but it is written as semicolon-separated fragments with no explanatory structure. Every element is relevant, yet the terseness borders on under-specification rather than efficient concision.

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

Completeness2/5

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

For a two-parameter tool with no annotations and no output schema, an agent cannot determine the return shape (URL, base64, or metadata), how payment is executed, or what 'steps' controls. The pricing note is helpful but leaves the critical call-time details missing.

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

Parameters2/5

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

Schema description coverage is 0%, so the description should compensate, but it says nothing about the two parameters. 'prompt' is loosely implied by 'generate image', yet 'steps' (integer, 1-4, plausibly sampling steps) is completely undocumented in both schema and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states 'ai generate image', a verb+resource that matches the tool name almost verbatim, so the purpose is inferable but not enriched beyond the title. It does not differentiate itself from siblings like ai_chat_completion or ai_embeddings, though the resource noun is distinctive enough in practice.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus ai_chat_completion or web_extract_markdown, and no stated preconditions (account, wallet, API key) for invocation. The agent is left to infer usage purely from the endpoint string.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.