AI Code Translator — translate code between ANY programming languages using local Ollama (zero cost). Supports Python, JavaScript, TypeScript, Rust, Go, Java, C, C++, C#, Ruby, PHP, Swift, Kotlin, Scala, R, Bash, PowerShell, SQL, HTML, CSS, and more. Can also convert English descriptions into working code.
Four tools with basic schemas and descriptions, but significant gaps in parameter documentation, output schema clarity, and error handling guidance. Tool names lack action verbs (translate vs translate_code). Descriptions are present but generic (10-50 chars for some params). No enum constraints on language parameters despite known valid values. Output schemas undocumented, LLMs cannot predict response structure. Error handling returns raw strings without recovery guidance. Parameter relationships (source_language auto-detection) underdocumented.
Convert an English description into working code. description: natural language description of what the code should do language: target programming language
List all supported programming languages for translation.
Translate code from one language to another. source_code: the code to translate target_language: language to translate TO (e.g. 'rust', 'python', 'go') source_language: optional, language translating FROM (auto-detected if empty)
Translate an entire source file to another language. file_path: path to the source file target_language: language to translate TO
Language parameters accept free-form strings instead of enums. 'target_language' should declare valid values (python, rust, go, etc.) as an enum constraint, not rely on LLM to guess from description.
Output schemas completely undocumented. LLMs cannot predict response structure (string vs object vs array). Tools return raw strings; should document whether output is code, error message, or structured result.
Error handling returns raw exception strings ('// ERROR: LLM call failed: {e}') without recovery guidance. Should categorize as retryable vs fatal and suggest next steps (e.g., 'Check OLLAMA_URL is reachable').
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 45 | 2026-07-28+ | v2 |
Tool name 'translate_file_tool' violates verb_noun convention and is redundant ('_tool' suffix). Should be 'translate_file'. Similarly, 'english_to_code' lacks a clear action verb.
Parameter 'source_language' description says 'auto-detected if empty' but does not explain detection logic or confidence. If detection fails, what happens? Undocumented dependency on source_code content.