Skip to main content
Glama

generate_image

Replace HTML figure placeholders with generated images using DALL-E, from direct prompts or extracted figure descriptions.

Instructions

调用 DALL-E 文生图 API 生成配图。可传入 HTML(自动提取 提示词),或直接传入 prompt 生成单张图片。生成后自动替换 HTML 中的 标签为

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlNo含 <figures> 占位符的 HTML(可选,如果直接传 prompt 则忽略)
promptNo直接传入图片生成提示词(不依赖 HTML 中的 <figures>)
outputDirYes图片输出目录(绝对路径)
imageConfigYesDALL-E API 配置
outputUrlPrefixNo图片引用 URL 前缀,默认 "./assets/images/"
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the automatic replacement of <figures> with <img> in HTML. However, it omits details like rate limits, cost implications, error handling, and the fact that images are saved to the output directory (implied by required param but not stated). This leaves some behavioral gaps.

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 two clear sentences with no redundancy. It immediately states the core purpose, then explains the two modes and side effect. Every part earns its place.

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?

The description explains the core functionality but lacks some completeness. It does not specify what the tool returns (e.g., updated HTML or success message) despite no output schema. It also does not mention the file saving behavior or error conditions. For a tool with 5 params and a nested object, more detail would be beneficial.

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 coverage is 100%, so the baseline is 3. The description adds workflow context (HTML extraction vs direct prompt) that is not in individual parameter descriptions, but it does not provide deeper constraints or examples. Value added is moderate given the schema already documents each parameter.

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 calls DALL-E API to generate images, with two distinct modes (HTML with <figures> extraction or direct prompt). It is specific about the verb (generate), resource (images), and differentiates from sibling tools by focusing on image generation rather than template processing.

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 explains two usage modes (HTML-based or direct prompt), providing clear context. However, it does not explicitly state when to choose one over the other, nor does it mention prerequisites like API key availability. Still, it offers sufficient guidance for an AI agent given the sibling tool set.

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/SUSTechWLA/ppt-generator-mcp'

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