MCP Server for Speech-to-Text and Translation. Provides tools for translating text to Thai and transcribing audio data to text using Whisper and Google Translate.
Two tools with basic structure but significant definition gaps. Both tools have schema and descriptions present, but descriptions are formulaic and lack context for LLM selection. No parameter constraints (enums, patterns, ranges). Error handling returns generic error strings without recovery guidance. No output schema documentation beyond return type hints. Missing tool annotations (readOnlyHint/destructiveHint/idempotentHint). Tool naming is acceptable but descriptions do not explain WHEN to use each tool or dependencies between them. The 'stt' tool accepts base64-encoded audio but provides no guidance on required audio format (sample rate, bitrate, duration limits). The 'translate' tool hardcodes Thai as the destination language, limiting usefulness but this is not documented clearly.
Transcribes audio data to text. MCP tool for speech-to-text. Automatically registered with @mcp.tool() decorator.
Translates the given text to Thai language. MCP tool for text translation. Automatically registered with @mcp.tool() decorator.
Descriptions are formulaic boilerplate without decision-making context. Both descriptions (translate: 120 chars, stt: 110 chars) are below the 194-char baseline for production tools and lack WHEN/WHY guidance. 'Translates the given text to Thai language. MCP tool for text translation.' is meta-commentary, not an explanation of when an LLM should invoke it vs alternatives. No mention of language limitations, use cases, or dependencies.
No input parameter descriptions beyond the bare minimum. 'text' param in translate lacks guidance on language (assumed English? what if input is already Thai?), length limits, or special character handling. 'audio_base64' param in stt lacks critical metadata: required sample rate, expected bit depth, duration limits, supported codecs, maximum base64 payload size. LLMs cannot infer these constraints from the parameter name alone.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 40 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 48 | - | v1 |
No input parameter constraints (enums, patterns, ranges). 'text' parameter has type 'string' with no maxLength, minLength, or pattern. 'audio_base64' has no maxLength despite being a base64-encoded binary blob that could exceed practical memory/processing limits. Without explicit constraints, LLMs can pass absurdly large inputs.
Error handling returns error strings wrapped in return objects ('return STTOut(transcribed_text="Error: {str(e)}")') without guidance on recovery. A generic 'Error: [Errno 2] No such file or directory' tells the LLM nothing actionable. Per pattern:recovery-guide, errors must categorize as retryable/user-fixable/fatal and suggest next steps ('If audio is corrupted, try recording again' or 'If model fails to load, check system memory').
Output schema not documented. Tools return Pydantic models (TranslateOut, STTOut) with fields 'translated_text' and 'transcribed_text', but there is no schema documentation visible to the LLM caller describing field types, constraints, or possible values. Return type hints exist in code but are not exposed in tool metadata. LLM cannot plan downstream actions if it does not know what the response contains.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). The 'stt' tool writes to /tmp/mcp_server_audio.wav and deletes it after processing, this is side-effect-heavy but marked as READ_ONLY risk. Annotation inconsistency. The 'translate' tool is truly read-only (no side effects) but lacks the readOnlyHint flag for LLM optimization. Tool annotations guide agentic reasoning about idempotency and retry safety.
No guidance on dependencies or prerequisite steps. The mcp_server.py file suggests both tools are independent, but there is no documentation of intended usage flow. Would an LLM typically call stt() first to transcribe audio, then translate() the text? Or are they orthogonal? Missing composition guidance.
'stt' tool name is abbreviated jargon (speech-to-text) rather than a verb_noun pattern. Name should be 'transcribe_audio' or 'transcribe_speech' to be self-documenting. Abbreviated names require the LLM to know domain terminology.