Skip to main content
Glama

generate_image

Create images from text descriptions for illustrations, diagrams, and icons. The image is saved to the current working directory.

Instructions

Generate an image from a text description using Gemini (nano banana). Use this when the user needs illustrations, diagrams, icons, or any visual content. The image will be saved to the current working directory.

Args:
    prompt: Description of the image to generate
    filename: Output filename (default: output.png)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
filenameNooutput.png

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations are not provided, so the description carries the burden of disclosing behavior. It does mention the side effect: 'The image will be saved to the current working directory.' This is valuable. However, it lacks details about file overwriting, image format, or any potential errors, leaving some ambiguity about the tool's runtime behavior.

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?

The description is concise and well-structured. It starts with the purpose, followed by usage, side effect, and an args list. Every sentence contributes useful information. The args list is slightly redundant with the schema, but since the schema lacks descriptions, the inclusion is justified and earns its place.

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?

Given the tool's simplicity (2 parameters, no nested objects) and the existence of an output schema, the description covers the essential aspects: what it does, when to use it, how it behaves (saving to CWD), and parameter meanings. It does not describe return values, but the output schema handles that. Minor omissions like file overwrite behavior prevent a higher score.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has no descriptions for its parameters (0% schema coverage), so the description's args section is essential. It explains 'prompt' and 'filename', and also adds the default value for filename. This fully compensates for the missing schema descriptions and goes beyond the bare schema by clarifying the meaning of each argument.

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?

The description clearly states the tool's function: 'Generate an image from a text description' and specifies the model 'Gemini (nano banana)'. This distinguishes it from sibling tools like audio transcription or knowledge base operations, which serve entirely different purposes.

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?

The description explicitly tells when to use the tool: 'Use this when the user needs illustrations, diagrams, icons, or any visual content.' This gives clear context. It does not mention when not to use it, but there are no obvious alternative image tools among the siblings, so this is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ryeliu/worklab-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server