Skip to main content
Glama

Social media studio

Generate Image

generate_image

Generate an AI image from a text prompt

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

Input Schema

NameRequiredDescriptionDefault
styleNoImage style (e.g. realistic, illustration, abstract)
promptYesText prompt describing the image to generate
providerNoImage provider (e.g. flux_fal, gpt_image) — see list_ai_image_providers
numImagesNoNumber of images to generate (1-4)
aspectRatioNoAspect ratio (e.g. 1:1, 16:9, 9:16)
negativePromptNoThings to avoid in the generated image

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the agent knows this is a non-destructive write with no external side effects. Beyond that the description adds nothing: no cost or credit implications, no expected latency or async behavior, no statement about where generated images are stored or how they relate to get_generated_image/delete_generated_image. The single sentence essentially restates the title.

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?

A single front-loaded sentence with zero filler or redundancy. It is efficient, though the brevity borders on underspecification given six parameters and a generation workflow.

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 six-parameter generative tool with no output schema, the description should say what comes back (image URLs? IDs?), whether generation is synchronous, and how results tie into the sibling get/delete image tools. None of that is present, so an agent cannot predict the result shape or follow-up steps.

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 all six parameters (prompt, style, provider, numImages, aspectRatio, negativePrompt) are already documented with examples and ranges. The description adds no syntax, defaults, or interaction guidance (e.g., that provider should be chosen from list_ai_image_providers), so the baseline of 3 applies.

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?

States a specific verb and resource — generate an AI image from a text prompt — which cleanly separates it from siblings like generate_video, generate_caption, and generate_content. It does not, however, contrast itself with generate_and_schedule or reference list_ai_image_providers for provider choice, leaving the primary dimension slightly under-served.

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 choose this tool versus generate_and_schedule or generate_video, no mention of prerequisites (API keys, credits, provider availability), and no exclusions. The agent must infer all routing decisions from the tool name alone.

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