Skip to main content
Glama

set_viewport_camera

DestructiveIdempotent

Place the active level editor viewport camera at an absolute world location or rotation; invalid input is refused before the camera moves.

Instructions

Place the camera of the active level editor viewport (the focused one, else the first) at an absolute world location and/or rotation; at least one is required and no viewport is an error. Editor view only, not undoable or saved: a PIE player camera (set_view_target) or a camera actor (set_camera_transform) does not move. location must be an [x, y, z] array of three numbers in cm and rotation three numbers or a roll/pitch/yaw object; anything else is refused before the camera moves. The reply reads location and rotation back, rotation as [pitch, yaw, roll]. Frame an actor with focus_viewport.

Returns: { applied: bool, location_set: bool, rotation_set: bool, location: [number], rotation: [number] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
locationNoOptional [x, y, z] world location
rotationNoPREFERRED: the OBJECT {"roll":R,"pitch":P,"yaw":Y} (any subset, absent axes are 0). The ARRAY form below is [pitch, yaw, roll] -- its index 2 is ROLL, NOT yaw, which once put a PlayerStart on its side. Optional [pitch, yaw, roll] world rotation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds substantial behavioral context beyond them: editor-view-only, not undoable or saved, and that invalid input is refused before the camera moves. This meaningfully informs the agent about persistence and failure behavior.

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?

Front-loads the core action and function before alternatives, params, and readback. It is dense and somewhat long, but nearly every clause (scope, exclusions, validation, readback) carries distinct information.

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

Completeness5/5

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

There is no output schema, yet the description spells out the return fields (applied, location_set, rotation_set, location, rotation) and the rotation ordering. Combined with scope, preconditions, validation, and sibling routing, an agent has everything needed to call it correctly.

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% (baseline 3), but the description still adds value: it states units (cm), that rotation is roll/pitch/yaw object or three numbers, and that malformed input is rejected pre-move. It reinforces the schema's rotation ordering warning, though the array index ambiguity is largely already covered in the schema description.

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+resource (place the camera of the active level editor viewport) with the exact target scope (focused viewport, else the first). It explicitly separates itself from siblings set_view_target, set_camera_transform, and focus_viewport, so an agent can pick it without opening another schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use framing plus explicit exclusions: a PIE player camera (set_view_target) or a camera actor (set_camera_transform) does not move, and frame an actor with focus_viewport. It also states the precondition that at least one of location/rotation is required and no viewport is an error.

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

Deploy Server

Other Tools