Skip to main content
Glama

generate_image

Create blog cover images with Google Gemini AI, automatically convert to WebP format, upload to CDN, and return optimized image URLs for web use.

Instructions

Generate an image using Google Gemini AI, convert to WebP format, upload to Qiniu CDN, and return the CDN URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesThe text prompt describing the image to generate
slugYesThe slug identifier for the filename (will be prefixed with date)
pathNoUpload directory path on CDN (default: 'aigc/image')aigc/image
Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden and succeeds in revealing the AI provider (Google Gemini), format conversion (WebP), storage destination (Qiniu CDN), and return value type (CDN URL). It lacks rate limits, authentication requirements, or error handling details, but covers the essential behavioral chain adequately.

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?

The description is a single, efficiently structured sentence that front-loads the action sequence. Every clause provides distinct value: AI provider identification, format specification, storage destination, and return type. Zero redundancy or filler content.

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?

For a 3-parameter tool with no output schema, the description adequately covers the full operation lifecycle from generation through delivery. It mentions the return value (CDN URL) despite lacking a formal output schema. Minor gap: no mention of error conditions, latency expectations, or image dimension constraints.

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?

Input schema has 100% description coverage, establishing a baseline of 3. The description focuses on the operational workflow rather than adding parameter-specific semantics (e.g., prompt length constraints, slug format rules, valid path values). No additional parameter context is provided beyond the schema definitions.

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 uses specific verbs (generate, convert, upload, return) and clearly identifies the resource (image), AI provider (Google Gemini), format (WebP), and destination (Qiniu CDN). It distinguishes from sibling 'upload_image' by including generation capability and from 'generate_blog_cover' by implying general-purpose use through the absence of blog-specific constraints.

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?

While the description implies usage through its specific workflow (generation + conversion + upload), it lacks explicit guidance on when to choose this over 'upload_image' (for existing files) or 'generate_blog_cover' (for specific blog formatting). The agent must infer the appropriate use case from the described behavior chain.

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/xinpengfei520/banana-image-mcp'

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