A polyglot MCP server demonstrating tool implementation in multiple languages (Rust and Python). Provides animal information from a zoo database.
Single tool 'get_animal_details' has a clear verb-noun name and basic schema present. However, the tool suffers from missing parameter descriptions, no output schema documentation, and minimal error handling guidance. The description is adequate but terse (29 chars). The implementation shows hardcoded test data (lion, penguin, giraffe) with a basic error fallback, but lacks production-quality error recovery patterns. Definition quality is fair but below production baseline.
Get details about an animal
Parameter 'animal_name' lacks description in schema; only has type 'string' with no guidance on format, case-sensitivity, valid values, or constraints. LLM must infer meaning from the parameter name alone.
No output schema documented. Caller does not know what fields to expect in the response. Source code shows AnimalDetails with 'habitat' and 'diet' fields, and an ErrorResponse with an 'error' field, but this is not declared in the MCP tool schema.
Error handling returns a generic JSON object with 'error' field, but does not guide the LLM on recovery. No hint like 'Valid animals are: lion, penguin, giraffe' or 'Use a known animal name.'
Tool description is very short (29 chars: 'Get details about an animal'). Baseline for A+ tools is 50-200 chars. No information on when to call it, what it returns, or which animals are available.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 54 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 49 | - | v1 |
Input schema in source shows only type and name, no additional validation constraints. Should specify that animal_name is required, its max length, and either enumerate valid values or explain the constraint.