MCP Server for converting code between different languages
This server has 5 tools with partial schema coverage and inconsistent description quality. Tool names follow verb_noun convention (convert_*, list_*, get_*), which is good. However, the parameter descriptions are present but generic/underdeveloped. Most critically, the output schema is completely undocumented, the code shows tools return JSON-stringified objects wrapped in content arrays, but the LLM has no visibility into the actual structure of those responses. This forces the LLM to guess at available fields. Input schemas are visible and typed, but lack examples, constraints (enums), and detailed parameter relationships. Error handling is minimal, no distinction between retryable vs fatal errors, and no recovery guidance. The server uses OpenAI (implicit from package.json dependency), but exposes LLM parameters (temperature, maxTokens) as tool inputs without secret injection controls, which is a security concern.
Convert a code snippet from one language to another
Convert all files in a directory from one language to another
Convert a single file from one language to another
Get statistics and metrics for a specific conversion
List all supported language conversion pairs
Output schemas are completely undocumented. All tools return JSON-stringified objects wrapped in a 'content' array, but the LLM has no visibility into what fields those objects contain (conversionId? errors? stats? warnings?). This violates the requirement that 'tools returning lists should document the output schema' and forces LLMs to guess or make API discovery calls.
LLM-facing parameters (temperature, maxTokens) expose model tuning controls without secret injection or server-side defaults. If credentials are stored server-side, these params should not be exposed to agents, agents will hallucinate invalid values or override production settings. Move to server configuration or hide behind tool-internal logic.
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 | 39 | - | v1 |
Descriptions do not distinguish between READ-ONLY and WRITE operations. convert_file and convert_directory modify the filesystem (create files), but descriptions do not warn agents that these calls are not idempotent and should be retried with caution. This violates pattern:command-tool which requires descriptions to state if a tool modifies state.
Parameter descriptions lack constraints and validation rules. E.g., 'temperature' has no min/max, 'sourceLanguage' and 'targetLanguage' have no enum of supported values, 'batchSize' has no range. This forces LLMs to guess valid inputs and invite hallucinated values. Minimal example: 'temperature (0.0 - 1.0, default 0.7)' instead of bare 'Temperature parameter for LLM'.
Error handling is minimal. Code catches errors but returns them via generic throw, no categorization (retryable vs fatal), no recovery guidance, no invalid value reporting. E.g., if sourceLanguage='invalid_lang', the agent receives no hint about which languages are valid. Should return 'Invalid source language: got "invalid_lang". Try list_supported_languages() first to see available options.'
Parameter relationships are undocumented. E.g., if sourceLanguage is 'python', are all targetLanguage values valid? If targetFramework='dotnet', must sourceLanguage be 'csharp'? These dependencies force LLMs into multi-step discovery and risk invalid combinations.
Batch tool (convert_directory) lacks pagination guidance. If the directory contains 10,000 files, does batchSize limit concurrency or output? What is the max per call? Description does not clarify. Should state: 'Returns max 100 files per call; use a loop with outputDirectory pagination to process larger batches.'
Tool descriptions are generic and under 100 characters (below the ideal 50-200 range). E.g., 'Convert a code snippet from one language to another' lacks WHEN, WHY, and what the output contains. Ideal: 'Convert a code snippet to another language, preserving comments/types if requested. Returns the converted code, conversion ID for stats retrieval, and any warnings/errors. Use this for inline snippets; use convert_file for file-based conversions.' This helps LLMs choose the right tool.