MCP server for image generation using OpenAI and Replicate APIs
ImageGenMCP defines 4 image generation tools with complete Zod schemas and basic descriptions. All tools have input schemas with typed parameters and enums for constrained values (size, quality, style, format). However, descriptions are generic and lack actionable context for LLM selection. Parameter descriptions are minimal (e.g., 'The text prompt describing the image to generate' is generic). No output schema documentation. Error handling returns raw error messages without recovery guidance. Tool names follow verb_noun pattern (generate-*) but lack specificity about which model/service each uses in the name itself.
Generate images using Replicate's Flux Dev model
Generate images using Replicate's Flux 1.1 Pro model
Generate images using OpenAI's image generation API
Generate SVG images using Replicate's Recraft V3 model
Tool descriptions lack LLM-optimized context. Descriptions like 'Generate images using OpenAI's image generation API' (54 chars) do not explain WHEN to use this tool vs generate-fluxdev/generate-fluxpro, what quality/speed tradeoffs exist, or cost implications. LLMs cannot distinguish between tools without comparative guidance.
No output schema documented. Tools return JSON.stringify(result) wrapped in text content, but LLMs cannot parse the structure without a schema. What fields does OpenAI return? Is it {url, b64_json}? What does Replicate return? Undocumented outputs force LLMs to guess.
Error handling returns raw error messages ('Error: {error.message}') without recovery guidance. Per pattern:recovery-guide, errors should tell the LLM what to do next. E.g., 'OpenAI API key missing. Ensure OPENAI_API_KEY is set in environment.' or 'Rate limit exceeded. Retry in 60 seconds.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | 2026-07-28+ | v2 |
Parameter descriptions are generic and lack constraints. E.g., 'aspect_ratio' has no description of valid formats (e.g., '16:9', '1:1', '9:16'). 'seed' is described as 'Random seed for reproducibility' but does not specify the numeric range or whether it must be positive. LLMs cannot validate inputs without explicit constraints.
Tool names do not disambiguate the underlying model/service. 'generate-openai' vs 'generate-fluxdev' vs 'generate-fluxpro' requires the LLM to read descriptions to understand the difference. Better names: 'generate_image_openai_dall_e', 'generate_image_replicate_flux_dev', 'generate_image_replicate_flux_pro' make the choice obvious from the name alone.