Translate text between 50+ languages with auto-detection via MyMemory API.
Single tool 'text_translate' has a well-structured schema with proper types and descriptions for all parameters. Tool description is comprehensive (194 chars) and explains use cases and constraints. However, output schema is not documented in the source code, the tool returns a complex object with translatedText, detectedLanguage, confidence, from, to, and charCount, but this structure is not formally declared in the tool definition. Parameter descriptions are clear and include constraints (max 5000 chars, language code format). No error handling guidance is present, the tool will throw on API failures but provides no recovery hints to the LLM. The tool name 'text_translate' is clear and verb-based, following naming conventions.
Use this when you need to translate text from one language to another. Supports 50+ languages with automatic source language detection. Returns translated text, detected source language, and confidence score. Ideal for multilingual content, localization, and cross-language communication. Do NOT use for summarization — use ai_summarize_text. Do NOT use for sentiment — use text_analyze_sentiment.
Output schema not documented. Tool returns {translatedText, detectedLanguage, confidence, from, to, charCount} but this structure is not declared in tool definition. LLMs cannot plan downstream operations without knowing response fields.
No error handling guidance. Tool throws on MyMemory API failures (status !== 200, network errors) but provides no recovery hints. LLM receives raw error messages with no actionable next steps.
Missing parameter constraints in schema. 'from' and 'to' parameters accept free-form strings with no enum constraint. LLM could pass invalid language codes like 'english' or 'french' instead of 'en'/'fr'. Description mentions examples but schema lacks formal validation.
No rate limiting or timeout handling documented. Tool calls external MyMemory API without explicit timeout. Runaway agent could hammer the API; no guidance on retry behavior or backoff.
Inferred effective spec: 2025-06-18+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 65 | 2025-06-18+ | v2 |
Language detection heuristic is simplistic and may fail on mixed-language or short text. Confidence scoring is ad-hoc (matchCount / textLen * 2, capped at 0.95). No documentation of detection accuracy or fallback behavior.