Skip to main content
Glama

Convert a scene/prefab

port_scene

Converts scenes between Godot, Unity, Unreal and three.js, translating transforms, colliders, lights, cameras, animations and UI into target engine formats.

Instructions

Converts a scene deterministically: Godot .tscn → Unity prefab/scene spec (+ editor builder menu), three.js TypeScript builder module, Unreal scene spec (cm, Z-up) or Godot C# (script paths swapped); Unity .unity/.prefab → Godot .tscn (bodies, colliders, primitive meshes, cameras, lights, scripts, prefab instances and variants with their overrides, uGUI Canvas/Image/Text/TextMeshPro/Button/Slider/Toggle/ScrollRect/layout groups → Control nodes with Godot anchors and offsets, Animator → AnimationPlayer + state-machine script); Unity .anim → Godot Animation .tres (position/rotation/scale/property/sprite/event tracks) and .controller → GDScript state machine with the same states, parameters and transition conditions. Transforms are converted between coordinate systems. With planId it writes the unit; with file+to it writes into the workspace.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "port_scene"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTarget engine (without a plan).
outNoOutput file (without a plan).
fileNoScene file (without a plan).
unitNoUnit id (u001…), or its source/target path. Omit for the next unit in dependency order.
planIdNoPort plan id from port_plan (port_status lists them).

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 already declare readOnlyHint=false and destructiveHint=false; the description adds meaningful behavior beyond that: conversion is deterministic, transforms are remapped between coordinate systems, Unreal output is in cm/Z-up, and writes target either a plan unit or the workspace. The side-effect of producing an editor builder menu on the Unity path is useful extra context. It stops short of saying what happens on partial failure or whether existing output files are overwritten.

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

Conciseness3/5

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

Front-loaded with the core statement, but the body is one enormous semicolon-chained sentence that reads as a format dump rather than structured guidance; the mapping details could be bulleted or trimmed. It is dense and information-rich but poorly structured for an agent scanning for the deciding sentence.

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 zero-required-parameter conversion tool with no output schema, the description covers supported format pairs, coordinate handling, and both write modes, which is close to sufficient. The gaps are the relationship to port_convert, how planId relates to port_plan/port_status beyond a parenthetical, and error/overwrite behavior.

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 the schema already documents all five parameters and the target enum. The description still adds mode semantics the schema does not: that planId drives unit-scoped writes while file+to+out drive workspace writes, which tells the agent how to combine the optional parameters. That is genuine value above the baseline 3.

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 names a specific verb (converts) and resource (scene/prefab) and enumerates exact source→target pairs: Godot .tscn → Unity/three.js/Unreal/Godot C#, Unity .unity/.prefab → .tscn, .anim → .tres, .controller → GDScript. It is unambiguous about what the tool does, though it never distinguishes itself from the sibling port_convert, so an agent still has to guess which of the two to call for a given conversion.

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?

The closing sentence gives two invocation modes — 'With planId it writes the unit; with file+to it writes into the workspace' — which is real usage guidance for the plan-driven vs direct path. However there is no explicit when-to-use/when-not-to-use against alternatives such as port_convert or port_shader, and the prerequisite that a plan must come from port_plan is only implied.

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