Skip to main content
Glama

Plan a port

port_plan

Plan a project port to another engine or language by mapping each source file to target actions, dependencies, and risk, then scaffold the new output project without modifying the source.

Instructions

Plans a port of a project to another engine or language and creates the output project (scaffold). Every source file becomes a unit with a target path, action (translate, convert-scene, copy, rebuild), dependencies, API-usage count and risk, ordered dependencies-first. Engines: godot, godot-csharp, unity, unreal, threejs; or a language (typescript, python, csharp, cpp, rust, go…). The source is never modified; output must be a new or empty folder.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "source": "<source>",
      "to": "<to>"
    },
    "name": "port_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget: godot, godot-csharp, unity, unreal, threejs or a language.
nameNoProject name for the target.
outputNoOutput folder (default: workspace/ports/<id>/output).
sourceYesSource project folder.
excludeNoRegex: skip source paths matching.
includeNoRegex: only source paths matching.
unrealVersionNoEngineAssociation for Unreal targets (default 5.5).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare the mutation profile (readOnly=false, destructive=false, idempotent=false), and the description adds real behavioral context beyond them: the scaffold is created, source is untouched, output must be new/empty (which explains the non-idempotent hint), and units are ordered dependencies-first. It does not say what gets returned or what happens when the plan is later executed, but the safety and side-effect picture is clear.

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 action and its output, followed by result detail and then constraints. The middle sentence listing unit attributes is dense but each clause carries actionable information; nothing is padding.

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 7-parameter mutating tool with no output schema, the description covers the operation, the artifact produced, the unit model, valid targets and the non-destructive guarantee. Remaining gaps (return value shape, whether conversion must follow) are modest given the schema and annotations already in place.

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 coverage is 100%, so the baseline is 3. The description does add one useful piece beyond the schema by enumerating valid targets ('godot, godot-csharp, unity, unreal, threejs; or a language (typescript, python, csharp, cpp, rust, go…)'), which compensates for the schema having no enums, but include/exclude/output/name syntax is left entirely to the schema.

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 ('Plans a port of a project to another engine or language') and adds the concrete side effect ('creates the output project (scaffold)'), which separates it from siblings like port_convert or port_write. It stops short of naming any sibling to route against, so 5 is not warranted.

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 hard prerequisite ('output must be a new or empty folder') and a safety constraint ('the source is never modified'), which tells an agent when the call is legal. It never says when to choose port_plan over port_draft, port_map or port_convert, so sequencing against alternatives is left to inference.

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