An MCP server that provides language learning tools for word selection, translation, and Anki deck creation. Integrates with local word lists and external LLM services for translation.
Three tools with basic schemas and descriptions, but significant gaps in parameter documentation and error handling. Tool names follow verb_noun convention (get_*, translate_*), which is good. However, parameter descriptions lack detail on constraints, valid ranges, and error recovery. No output schema documentation. Error handling is minimal, tools will fail silently or throw unhandled exceptions rather than guide the LLM on recovery. The translate_words tool has fragile JSON parsing with a regex fallback, but no error description to guide the agent. Overall, definitions are functional but below production quality.
Selects a specified number of random words from a language-specific word list.
Retrieves a specified number of random words filtered by a given difficulty level from a word list corresponding to a specific language. The function reads the word list from a JSON file located in the directory `data/{language}/word-list-cleaned.json`.
Translates a list of words from a source language to a target language using a language model. The method ensures output is in the expected JSON format, containing translations corresponding to the provided input words.
Parameter descriptions lack constraints and valid values. 'language' parameter has no enum or format guidance; 'difficulty_level' mentions valid values in docstring but not in schema description. LLMs cannot reliably infer valid language codes or difficulty levels.
No output schema documentation. Tools return lists or dicts, but LLMs cannot see the structure of returned objects (e.g., what fields are in each word dict, what the translate_words response structure is). This forces LLMs to guess and risks parsing errors.
Error handling is absent. translate_words catches JSON parse exceptions and falls back to regex, but returns an empty dict on failure with no error message. get_n_random_words will crash if the language directory or JSON file does not exist. No recovery guidance for the LLM.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 63 | 2026-07-28+ | v2 |
Parameter 'n' (number of words) has no bounds. LLMs could request 10,000 words, causing memory exhaustion or timeout. No minimum/maximum documented.
translate_words description does not clarify that it requires a language model (Ollama) to be running. If the model is unavailable, the tool fails with no guidance. Dependency on external service not documented.