Skip to main content
Glama

get_object_bounds

Get the world-space bounding box of a GameObject, including combined renderer and collider bounds, to understand its size and position for layout planning.

Instructions

Get the world-space bounding box of a GameObject in the scene. Returns the combined bounds of all renderers/colliders in the object and its children. Use this to understand object sizes and positions for layout planning.

Returns:

  • center: World position of the bounds center [x, y, z]

  • size: Dimensions of the bounding box [width, height, depth]

  • min/max: World-space corners of the bounds

Input Schema

NameRequiredDescriptionDefault
objectIdNoPreferred: GameObject globalObjectId from scene-hierarchy.json
objectPathNoLegacy path selector (e.g., 'City/Buildings/Skyscraper_1')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does meaningful work: it discloses that the result aggregates children and both renderer and collider bounds, and it documents the returned fields (center, size, min/max) in the absence of an output schema. It stops short of stating behavior for missing/inactive objects or disabled renderers, which is the remaining gap.

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-loaded with the core statement, followed by scope, usage, and a compact Returns list. Every line contributes, though the returns block is slightly verbose in restating center and min/max as separate bullets.

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 two-parameter read tool with no annotations and no output schema, the description covers purpose, aggregation semantics, and return structure — the essentials an agent needs. It omits failure modes (nonexistent object, prefab asset vs scene instance) and world-vs-local assumptions are only implicitly resolved by 'world-space'.

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%, and the schema itself already marks objectId as preferred over the legacy objectPath. The description adds no additional parameter meaning such as path format edge cases or fallback order, so the baseline 3 applies.

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 gives a specific verb and resource ('Get the world-space bounding box of a GameObject') and immediately clarifies scope: bounds are combined across all renderers/colliders in the object and its children. No sibling in the supplied list computes bounds, so an agent can identify this tool's distinct role without ambiguity.

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?

It offers one use case ('understand object sizes and positions for layout planning'), which implies when to reach for it, but gives no when-not conditions and names no alternative for related queries such as transforms or per-renderer bounds. The guidance is suggestive rather than directive.

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