Skip to main content
Glama

Create image

create_image

Generate images from a text prompt. Each image is billed. Consumes the user's FreeLLM credits; confirm with the user before calling. Failed jobs are free. Returns a task_id immediately; call get_task with it every 15-30 seconds until status is success or failed.

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": "create_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
ratioNo
promptYes
num_imagesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: per-image billing, FreeLLM credit consumption, user confirmation requirement, free failed jobs, immediate task_id return, and the polling cadence. The annotations only flag non-read-only, non-idempotent, open-world; the description supplies the cost and async-lifecycle facts an agent actually needs to act safely.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tightly packed sentences with no filler. The core capability is front-loaded, and cost, confirmation, and the async handoff each follow in a logical order.

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?

With no output schema, the description correctly explains the return value (task_id) and the polling loop, and it covers the billing/async complexity well. The remaining gap is the undocumented ratio and num_images parameters, which matter for cost predictability.

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 must carry parameter meaning, and it only covers the prompt implicitly. The ratio enum (1:1, 16:9, 9:16, 4:3, 3:4) and num_images (1-4, default 1) are never explained, nor is the fact that num_images multiplies the per-image charge.

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

Purpose4/5

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

"Generate images from a text prompt" states a specific verb and resource, and the text-prompt phrasing implicitly separates it from siblings that operate on existing media (edit_image, upscale_image, create_video). It does not name an alternative outright, so it stops short of full sibling differentiation.

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 strong operational guidance: confirm with the user before calling because credits are consumed, and poll get_task every 15-30 seconds until success or failed. That covers prerequisites and follow-up precisely, though it never contrasts against alternate generation routes such as create_video.

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.

Resources