Skip to main content
Glama

Convert Source Code Language

generate-language-conversion

Use this when the user supplies one source-code file for conversion to another programming language or framework. After authorization, this state-changing action uses AI credits and creates a generation from source_code, filename, from_language, and to_language. It returns converted code and can save to a Space; public Spaces expose saved results.

Input Schema

NameRequiredDescriptionDefault
nameNoOptional generation history name for the converted output. Defaults to the supplied filename when omitted.
filenameYesFilename for the supplied source code, including extension when known, so the generator can name the generation and understand context.
source_codeYesSource code contents to convert. Use this only when the customer supplied the code text to the MCP client; use browser guidance for local file picker uploads.
to_languageYesTarget programming language or framework to convert to, such as TypeScript, Python, Go, Vue, TailwindCSS, CSS, or Laravel.
from_languageYesSource programming language or framework to convert from, such as PHP, JavaScript, Python, React, Bootstrap, CSS, or Laravel.
save_to_spaceNoOptional destination Space item for saving the converted code after authorization. The authenticated user must be able to manage that Space.
additional_instructionsNoOptional conversion guidance, such as preserving APIs, using a framework version, matching style conventions, or focusing on compatibility.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds substantial context beyond them: authorization is required, AI credits are consumed, the action is state-changing, and saved results in public Spaces become publicly visible. That public-exposure warning is a genuinely useful risk disclosure missing from structured fields, though rate limits or failure behavior aren't covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the usage trigger, then behavior, then return/side effects. Dense and mostly waste-free, though the third sentence packs several distinct facts and could be split for clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and seven parameters, the description carries return-value burden and does address it ('returns converted code') along with the optional save path and its exposure implications. Enough for an agent to call it correctly, though it doesn't describe the generation object or error cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description goes slightly beyond by tying the inputs together as a generation source and flagging that save_to_space carries a manage-permission requirement and public-visibility consequence, which is meaning the schema alone doesn't convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('converts one source-code file to another programming language or framework') and scopes it to a single file, which distinguishes it from the repository- and codebase-level generation siblings like generate-repository-readme or generate-code-optimization.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use this when the user supplies one source-code file for conversion' gives a clear triggering condition, and the schema's source_code description further routes local file uploads elsewhere. It does not explicitly name a sibling alternative or an exclusion case, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.