Skip to main content
Glama

Generate an image

generate_image

Generate one image with an uncensored image model on OpenUncensored (ids and prices per image in list_models, e.g. z-image-turbo) and return it, with the model and provider that made it and the cost in USD charged to the account. Adult content is allowed; minors, real people without their consent and non consensual imagery are refused.

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

Input Schema

NameRequiredDescriptionDefault
sizeNoDefault 1024x1024.
modelYesImage model id from list_models, e.g. z-image-turbo
promptYesWhat the image should show.
api_keyNoDefaults to the key in the MCP config.
negative_promptNoOptional: what to keep out of the image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare openWorldHint, non-idempotent, non-read-only; the description adds materially more: the call charges the account in USD, the response includes the producing model and provider, and the tool will refuse certain content classes. It does not explain failure modes, whether refused requests are charged, or rate limits, keeping it short of a 5.

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

Conciseness4/5

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

Two sentences, front-loaded with the core action and return value, then the policy constraints. The parenthetical '(ids and prices per image in list_models, e.g. z-image-turbo)' interrupts the main sentence slightly but carries real routing value.

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 5-parameter generation tool with no output schema, the description covers the return payload (image, model, provider, cost), the pricing implication, and the content policy. What remains unstated is error/refusal handling and whether a charge occurs on refusal, a minor but real gap.

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 description coverage is 100%, so the schema already documents all five parameters including enum values and defaults. The description only reinforces that model must be an id from list_models and mentions price per image; it adds no semantics for size, negative_prompt, or api_key beyond the schema. Baseline 3 applies.

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 concrete verb and resource ('Generate one image with an uncensored image model on OpenUncensored') and names the return payload, plus points to list_models for valid model ids. An agent can distinguish it from list_models, chat, or get_model purely from the description.

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 clear context for use: pick a model id from list_models, and explicit content boundaries (adult content allowed; minors, non-consensual imagery, and unconsented real people refused). It lacks an explicit statement of when to prefer this over alternatives like chat, but the routing to list_models for model/pricing discovery covers the main decision the agent faces.

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