Skip to main content
Glama

create_xr_rig

Create an XR Origin camera rig for XREAL One Pro, setting up head-mounted display camera, hand tracking origins, and interaction components like ray and direct interactors.

Instructions

Creates an XR Origin (camera rig) configured for XREAL One Pro. Sets up the head-mounted display camera, hand tracking origins, and interaction components.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rigNameNoName for the XR Origin GameObjectXR Origin (XREAL)
positionNoInitial position for the XR Origin
prefabPathNoPath to save prefab (if createAsPrefab is true)
cameraYOffsetNoCamera Y offset for floor-level tracking (typically 1.36m for standing)
createAsPrefabNoSave the rig as a prefab after creation
addUIInteractionNoAdd UI interaction components
addRayInteractorsNoAdd ray interactors for distant selection
addHandControllersNoAdd hand tracking controller objects
trackingOriginModeNoTracking origin referenceDevice
addLocomotionSystemNoAdd locomotion system components
addDirectInteractorsNoAdd direct interactors for touch/grab
Behavior4/5

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

The description accurately indicates the tool creates a new GameObject (write operation) without contradicting the readOnlyHint=false annotation. It specifies the components set up, but could add more detail about scene impact (e.g., 'adds to current scene'). No contradiction found.

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?

The description is concise with two sentences covering the core action and key setup details. It front-loads the purpose but could improve by listing configurable aspects more explicitly.

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?

Given the tool's complexity (11 parameters, nested objects) and absence of an output schema, the description adequately summarizes the creation scope. However, it omits what the tool returns (e.g., the GameObject) and scene-level implications.

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 baseline is 3. The description does not add extra semantic meaning beyond the schema; it only provides a high-level overview without parameter-specific detail.

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?

The description explicitly states the tool creates an XR Origin configured for XREAL One Pro, naming specific components (HMD camera, hand tracking origins, interaction components). This clearly distinguishes it from sibling tools like create_scene or create_prefab.

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 description lacks explicit guidance on when to use this tool versus alternatives like setup_xreal_project or create_xr_ui. While the purpose is clear, no usage context or exclusions are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/joel-wehr/unity-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server