Skip to main content
Glama

create_spatial_anchor

Create spatial anchors that persist across sessions and maintain real-world positions by specifying world coordinates or attaching to detected planes. Supports cloud sharing and custom metadata.

Instructions

Creates a spatial anchor at a specified position or on a detected plane. Spatial anchors persist across sessions and maintain their position in the real world.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metadataNoCustom key-value metadata to store with the anchor
positionNoWorld position for the anchor
rotationNoRotation quaternion for the anchor
anchorNameYesUnique name for this spatial anchor
persistentNoSave anchor for persistence across sessions
planeOffsetNoOffset from the plane center when attaching to a plane
cloudEnabledNoEnable cloud sharing of this anchor
attachToPlaneNoID of a detected plane to attach the anchor to
Behavior3/5

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

Description adds persistence and real-world positioning beyond the readOnlyHint annotation. However, it does not disclose error behavior on duplicate names, side effects, or required settings.

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?

Two succinct sentences with no wasted words. Could be more structured but is efficient.

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

Completeness2/5

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

No output schema, no mention of return value. Lacks behavioral context for 8 parameters, such as what happens if anchorName already exists or if attachToPlane fails.

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 parameters are documented. Description provides a high-level summary but adds minimal detail beyond what's in the schema.

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 clearly states the action (creates), resource (spatial anchor), and options (specified position or detected plane). It distinguishes from sibling tools like 'manage_spatial_anchors' which handle existing anchors.

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?

Implied usage for creation, but no explicit guidance on when to use this vs alternatives (e.g., manage_spatial_anchors). Missing prerequisites like plane detection being enabled for attachToPlane.

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