Skip to main content
Glama

generate_image

Generate an image from a text prompt only (scenes, backgrounds, product shots). Do NOT use this for putting avatars on hooks - use face_swap instead. Costs 5 credits.

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
modelNoImage model
promptYesImage generation prompt
resolutionNoOutput resolution
aspectRatioNoAspect ratio
workspaceIdNoWorkspace (product/brand) id from list_workspaces. Omit to use the default workspace (set_default_workspace), else the newest one.
referenceImageUrlNoReference image URL for variations

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / workspaceId
      Added value: +{
      +  "description": "Workspace (product/brand) id from list_workspaces. Omit to use the default workspace (set_default_workspace), else the newest one.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one genuinely useful trait: a flat cost of 5 credits. However, it says nothing about whether generation is synchronous or returns a job handle (the get_job_status/get_render_status siblings suggest async work), no failure behavior, and no rate limits. Worse, "from a text prompt only" sits in tension with the referenceImageUrl parameter for variations, which could steer an agent away from a supported capability.

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?

Three short sentences, zero filler, and the core purpose is front-loaded before the exclusion and the cost. The credit price is a single clause rather than a paragraph, which is the right weight for a secondary fact.

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

Completeness3/5

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

There is no output schema, so the description is the only place an agent could learn what comes back (image URL, asset record, or job id for polling), and it omits that entirely. Cost and the primary exclusion are covered, but for a generation tool that likely runs asynchronously and consumes credits, the return contract is a material 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 all six parameters, including three enums and the workspace fallback rule, are already documented in structured data; baseline 3 applies. The description adds nothing about model selection tradeoffs, resolution, or aspect ratio, and its "prompt only" phrasing mildly undercuts the documented referenceImageUrl parameter rather than clarifying it.

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?

Uses a specific verb and resource ("Generate an image from a text prompt"), narrows scope with concrete examples (scenes, backgrounds, product shots), and explicitly names the sibling it is not (face_swap). An agent can distinguish it from face_swap, clean_image, and generate_avatar without opening any schema.

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 an explicit negative case with the correct alternative: "Do NOT use this for putting avatars on hooks - use face_swap instead." That is real routing guidance rather than implied usage. It stops short of 5 because other plausible adjacents (generate_avatar for people, clean_image for touching up an existing image) get no mention, leaving the agent to guess for those cases.

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