Single tool server with moderate schema quality but significant description and guidance gaps. The tool definition is visible in src/index.ts and src/server.ts with explicit registration using server.tool(). InputSchema uses Zod with type definitions. However, the description is concatenated without proper spacing, creating a run-on sentence. Parameter descriptions exist but lack actionable guidance on constraints, formats, and dependencies. Output schema is not documented, LLMs cannot plan around the base64 image response structure. The tool lacks error guidance, prerequisites, and dependency hints. No tool annotations (readOnly, destructive hints) are present despite this being a stateful, rate-limited external API call.
Generates and returns an image based on the provided promptUse this tool when you need to generate an image based on a promptThe image will be returned as a base64 encoded string
Tool description is a concatenated run-on sentence without proper spacing or structure. Reads as 'Generates and returns an image based on the provided promptUse this tool when you need to generate an image based on a promptThe image will be returned as a base64 encoded string', unclear where one sentence ends and another begins. LLMs struggle to parse this into actionable guidance.
Output schema is not documented. The tool returns an array of objects with {type, data, mimeType} but LLMs cannot see this structure in the tool definition. They must infer what format 'base64 encoded string' means and cannot plan downstream processing (e.g., storing in a specific format, passing to a display tool). This violates pattern:response-shaper and forces the LLM to reverse-engineer the response structure.
Parameter descriptions lack actionable constraints and formats. 'width', 'height', and 'numberOfImages' are described only by their names, no mention of valid ranges (e.g., min/max pixels), required defaults, or API limits. The Replicate and Together providers have undocumented constraints (max images, image size limits) that should be enforced at the tool level with clear error messages.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 46 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 35 | - | v1 |
No error guidance or recovery paths. If the provider fails ('No image returned from ${provider}'), the error message tells the LLM nothing about what went wrong or what to do next. It should categorize errors (rate limit vs API key vs model unavailable vs timeout) and provide recovery hints (retry with exponential backoff, check PROVIDER env var, etc.).
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). The tool calls external APIs (Replicate, Together) and has side effects (rate limiting, quota consumption, billing). LLMs should know this tool is not read-only and may fail idempotency checks if retried mid-request. Missing annotations prevent agents from making safe retry/backoff decisions.
Parameter dependencies and provider-specific constraints are undocumented. The 'width' and 'height' parameters are optional but some providers may require them or have specific aspect ratios. The 'numberOfImages' parameter maps to 'num_outputs' in Replicate and 'n' in Together, this provider-specific translation is invisible to the LLM, creating confusion if outputs don't match expectations.
No prerequisites or setup guidance in the description. The tool requires PROVIDER, MODEL_NAME, and API keys (REPLICATE_API_TOKEN or TOGETHER_API_KEY) as environment variables. The description should hint that setup is required, or the tool should validate these at startup and return a clear error if missing.
Replicate provider silently accepts numberOfImages but maps it to num_outputs; Together provider maps it to 'n'. If numberOfImages is not provided, defaults differ between providers. The tool should explicitly state the default and validate the range (e.g., 1-10) to prevent surprise results.