Skip to main content
Glama

Generate image

generate_image

Generate an image from a text prompt. The png is stored privately for this tenant and a short-lived signed URL is returned. Billed per image.

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
sizeNo1024x1024|1024x1536|1536x1024|auto (default 1024x1024)
promptYesWhat the image should show
target_tenant_idNoPlatform super-admins only: operate on this tenant instead of your own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral facts: output is a PNG stored privately per tenant, the caller receives a short-lived signed URL, and each call is billed. The billing note usefully reinforces the non-idempotent hint by implying repeat calls cost money, though nothing is said about latency, failure modes, or moderation.

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, each carrying distinct information: the action, the return artifact with its privacy and expiry characteristics, and the cost model. Front-loaded with the core purpose and free of filler.

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 takes on the job of explaining the return value (a signed URL to a privately stored PNG), which is exactly what an agent needs. It covers cost and tenancy, but leaves the signed URL's lifetime and any content-policy constraints unspecified.

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%, with size options and the super-admin-only nature of target_tenant_id documented inline, so the schema carries the parameter burden and the baseline of 3 applies. The phrase "stored privately for this tenant" loosely reinforces the tenant-scoping parameter but adds no format or behavioral detail about size handling or how target_tenant_id interacts with billing.

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?

The description opens with a specific verb and resource ("Generate an image from a text prompt"), so there is no ambiguity about what the tool produces. It does not name or contrast any sibling tool, which keeps it just short of a 5 under the rubric.

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 explicit when-to-use or when-not-to-use guidance and no mention of an alternative tool for image work. The only steering signal is indirect: "Billed per image" hints that calls should not be made casually, but an agent gets no stated conditions for choosing this tool.

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