Image generation MCP server based on Doubao API, implements image generation functionality using Volcano Engine API
The server has one tool with a reasonable name and acceptable schema, but falls short in several critical areas. The tool name 'doubao_generate_image' correctly uses verb_noun pattern. The tool has a detailed description (~450 chars) that explains WHAT it does and includes bilingual context. However, the schema has notable gaps: the description field for the 'size' parameter contains an inline list of resolutions rather than proper enum constraints, forcing the LLM to parse free-text options. Parameter descriptions are present but uneven in quality, 'prompt' and 'guidance_scale' are clear, but 'file_prefix' lacks actionable validation rules in the description (e.g., 'must match ^[a-zA-Z0-9_]{1,20}$'). The tool lacks error handling guidance, there is no documentation of what errors might occur (API failures, invalid API key, image generation timeout) or what the LLM should do next. Output structure is documented in the function signature (List[TextContent]) but actual response fields are not explicitly documented. The tool also accepts credentials via environment variables (good for security), but provides no guidance on handling API failures or timeouts. Missing: enum-constrained parameters, actionable error messages in the tool, and per-field output documentation.
Generate image using Doubao API. This function is the core tool function of the MCP server, used to call Doubao (Volcano Engine) API to generate images. The function validates input parameters, calls the underlying image generator, and returns formatted result information.
Parameter 'size' lacks enum constraint, description contains raw list of 11 resolution strings, forcing LLM to parse free-text. Should use JSON Schema enum with predefined resolution values.
Parameter 'file_prefix' description lacks actionable validation rules. States 'letters, numbers, underscores only, max 20 characters' in natural language but does not include regex pattern or format in description to guide LLM validation.
Tool lacks error handling guidance. No documentation of failure modes (invalid API key, rate limiting, timeout, invalid prompt) or recovery steps. LLM cannot determine if error is retryable or user-fixable.
Output schema is implicit (List[TextContent]) but not explicitly documented. Tool description does not describe what fields are returned, in what structure, or how to use them downstream. LLM cannot plan follow-up operations.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 56 | <=2025-11-25 | v2 |
| 2026-03-09 | D | 52 | - | v1 |
Tool description mixes English and Chinese bilingual content, which adds token overhead and may confuse LLM understanding. Descriptions should prioritize clarity for the LLM's primary language.