MCP server for Hugging Face API integration - Access Stable Diffusion and other AI models
Three tools with basic schemas and descriptions, but significant gaps in parameter documentation and output schema clarity. generate_image has a complete input schema with enums and defaults, but lacks output schema documentation. list_models and check_status have minimal schemas (empty properties) and generic descriptions. No error handling guidance, no tool annotations, and parameter descriptions lack actionable constraints (e.g., guidance_scale range 1-20 stated but not enforced in schema). Naming is verb-forward (generate_, list_, check_) which is good, but descriptions are brief (34-72 chars) and lack WHEN/WHY context for LLM selection.
Check Hugging Face API status and token validity
Generate an image using Hugging Face models
List available Hugging Face models for image generation
Output schemas not documented. generate_image returns {success, message/image, model, size} but LLMs cannot plan downstream calls without knowing the response structure. list_models and check_status responses are inferred from handler code, not declared in tool definitions.
Parameter descriptions lack actionable constraints. guidance_scale says '(1-20)' in text but schema has no minimum/maximum. save_path has no validation guidance. LLMs cannot self-correct invalid inputs without explicit constraints in the schema.
list_models and check_status have empty input schemas (properties: {}) with generic descriptions (40 and 35 chars). Descriptions do not explain WHEN to call these tools or what they enable. LLMs cannot distinguish between them or know when to invoke them.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 45 | 2026-07-28+ | v2 |
No error handling guidance. generate_image catches errors and returns {success: false, error: message}, but does not categorize errors as retryable, user-fixable, or fatal. No recovery hints (e.g., 'Check HUGGINGFACE_TOKEN is set' or 'Model may be loading, retry in 30s').
No tool annotations. generate_image is destructive (writes files, calls external API) but lacks destructiveHint. check_status is read-only but lacks readOnlyHint. Annotations help agents reason about side effects and retry safety.