Skip to main content
Glama

generate_image

Create a 1K PNG image from a text prompt with a chosen aspect ratio, saving it to a local path; failed or refused generations are refunded automatically.

Instructions

Generate a 1K PNG image from a text prompt using Plantain (Nano Banana 2.1). Costs 1 credit (€0.02, less in bulk packs). Failed or refused generations are automatically refunded.

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
promptYesText description of the image to generate (max 2000 characters).
output_pathNoOptional local file path to save the generated PNG (e.g. ./out/hero.png).
aspect_ratioNoOutput aspect ratio. 1:1 is 1024x1024; other ratios are ~1K on the long side.1:1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the billing model (1 credit, €0.02, cheaper in bulk), the refund guarantee for failed or refused generations, and implicitly that prompts can be refused by a safety filter. It omits operational traits such as typical latency and whether generation is synchronous, and it does not say what the tool returns.

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 tight sentences with the capability front-loaded, then cost, then the refund guarantee. The parenthetical model name and bulk-pack note are compact and no sentence is filler.

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?

For a three-parameter tool with no output schema, the description covers cost and failure semantics but leaves a material gap: output_path is optional, so an agent cannot tell from the definition where the PNG lands when that parameter is omitted. The return shape (URL vs. local file vs. base64) is likewise unstated, so a caller may need to guess or make a follow-up call.

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 three parameters (prompt, output_path, aspect_ratio) are already documented with constraints and defaults. The description only restates the 1K/PNG output framing and adds no syntax, format, or interaction detail 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 specific verb (Generate), a specific artifact (1K PNG image), the input (text prompt), and the backing engine (Plantain / Nano Banana 2.1). The word 'image' plus 'PNG' cleanly separates it from the sibling generate_video without needing to name it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the agent can infer this is the tool for image generation, and the credit/price disclosure supports a cost-benefit decision. There is no explicit when-to-use/when-not guidance, no mention of alternatives for editing or iterating on an existing image, and no prerequisites (e.g. account credit balance).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools