Skip to main content
Glama

Convert coordinates between engines

port_convert
Read-onlyIdempotent

Converts positions, rotations, scales, camera FOV, and physics profiles between game engines such as Godot, Unity, Unreal, and three.js to support engine ports.

Instructions

Converts positions, rotations (quaternion [x,y,z,w] or Euler degrees in the source engine's convention), scales and camera FOV between godot, godot-csharp, threejs, gltf, bevy, unity, unity-xmirror, unreal, blender. Returns target quaternion plus Euler in the target's convention (Godot rotation_degrees, Unity eulerAngles, three.js), the axis matrix and unit factor (Unreal ×100). physics:{…} adds a physics profile: gravity, fixed step, damping, friction/bounce (with each engine's combination rule), mass, speeds, jump velocity recomputed for the target gravity, and collision layers turned into Godot layer/mask bits, Rapier groups, Unreal channels or a Unity matrix — plus the settings to change and the behavioural differences to retune.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "port_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget system.
fovNoCamera FOV in degrees (vertical; horizontal for unreal).
fromYesSource system.
eulerNoEuler degrees in the source convention (godot, unity, threejs).
scaleNo[x, y, z].
aspectNoAspect ratio for FOV conversion (default 16/9).
physicsNoPhysics numbers to carry over; pass {} for the profile and differences only.
positionNo[x, y, z] in source units.
rotationNoQuaternion [x, y, z, w].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, which is the right profile for a pure computation. The description adds real behavioral detail beyond that — target quaternion plus Euler in the target's convention, axis matrix, unit factor (Unreal ×100), per-engine friction/bounce combination rules, and the "settings to change" caveat. It stops short of stating failure modes (what happens if neither rotation nor euler is supplied, unsupported combinations), which keeps it below the top.

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?

The core purpose is front-loaded in sentence one, which is good. The second sentence is a single very long run-on covering output format, unit factors, physics fields, engine-specific combination rules, and behavioural retuning — every clause is substantive but the density makes it hard to scan; bullets or shorter sentences would have preserved the content with more 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?

For a 9-parameter tool with a 14-field nested physics object and no output schema, the description does the necessary work of describing the return payload (quaternions, Euler, axis matrix, unit factor, physics profile, settings to change, differences to retune). Gaps remain around precedence when both rotation and euler are supplied and around FOV/aspect behavior, but an agent could call it correctly from this.

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 baseline is 3; the description earns above that by adding semantics the schema cannot express — quaternion ordering [x,y,z,w], Euler interpreted in the SOURCE engine's convention with output in the TARGET's, and jump velocity being recomputed for target gravity. The physics narrative (gravity, fixed step, damping, mass, speeds, collision layers → Godot layer/mask, Rapier groups, Unreal channels, Unity matrix) maps the nested object to concrete outcomes.

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?

States a specific verb ("Converts") and enumerates the exact resources — positions, rotations, scales, camera FOV, and an optional physics profile — plus all nine supported engines. An agent can tell this is a value-level unit/coordinate conversion tool, distinct from asset or scene tools like port_scene or port_copy_assets, without opening the schema.

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?

Usage context is clear: convert per-value transforms between engines, with an explicitly opt-in physics path ("physics:{…} adds a physics profile", "pass {} for the profile and differences only"). It does not, however, name a sibling or say when to prefer this over e.g. port_unit or port_map, so the routing guidance stays implicit.

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