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

TableJSON 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

A3.7/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), and the description adds genuinely useful context beyond them: it requires authorization, consumes AI credits, creates a generation, returns converted code, and warns that results saved to public Spaces are exposed. That is substantial behavioral disclosure.

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 triggering condition and zero obvious padding. It is appropriately sized for the tool's complexity, though the saving/public-Space clause could be tightened.

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?

For a state-changing, credit-consuming generation tool with no output schema, the description conveys the essential lifecycle: authorization, credit cost, output (converted code), and persistence semantics. Only minor gaps remain (e.g., no failure/format details), but an agent has enough to call it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all seven parameters including the nested save_to_space object. The description only restates the four required inputs without adding syntax, format, or constraint detail, so the baseline 3 is appropriate.

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

Purpose4/5

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

The description states a specific verb and resource: converting a single supplied source-code file to another programming language or framework. This is clear and distinguishably different from documentation/optimization siblings. It stops short of naming any specific alternative tool, so it doesn't fully earn a 5.

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

Usage Guidelines3/5

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

It gives a clear trigger condition ('when the user supplies one source-code file for conversion'), which implies usage. However, it names no alternatives and gives no when-not-to-use guidance among the many generate-* siblings, leaving selection largely to inference.

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.

Resources