Skip to main content
Glama

get_mesh_bounding_box

Read-onlyIdempotent

Retrieve the local-space axis-aligned bounding box of a static mesh, returning min, max, extent, and center coordinates for spatial queries.

Instructions

Read the local-space axis-aligned bounding box of a static mesh via UGeometryScriptLibrary_MeshQueryFunctions::GetMeshBoundingBox.

Returns: { static_mesh_path, lod_index, min_x, min_y, min_z, max_x, max_y, max_z, extent_x, extent_y, extent_z, center_x, center_y, center_z }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lod_indexNoOptional LOD index to query (default 0, MaxAvailable)
static_mesh_pathYesContent path to the UStaticMesh asset (e.g. "/Game/Meshes/SM_Cube")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive, so the safety profile is covered. The description adds genuinely useful behavioral context beyond that: the box is LOCAL-space and axis-aligned, which tells the agent the numbers are not world coordinates. It does not address failure behavior for an invalid path or missing LOD.

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 action and space qualifier, with the return shape second. The API path is slightly extraneous but small, and there is no filler or repetition beyond that.

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?

No output schema exists, so the description correctly compensates by enumerating the returned fields, including derived values (extent, center). Combined with the local-space clarification, an agent has enough to call and consume the result, though error/edge-case behavior is absent.

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 both static_mesh_path and lod_index (with its default/max semantics) are already documented in the schema. The description restates lod_index in the return list but adds no new meaning such as what happens if the LOD is out of range, 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?

States a specific verb and resource: read the local-space axis-aligned bounding box of a static mesh, and even names the underlying UGeometryScript query function. This clearly distinguishes it from siblings like get_actor_bounds, get_mesh_selection_bounds, or get_scene_bounds, which operate on different scopes (actor/world/selection).

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 implies usage (querying a static mesh's local AABB) but never states when to choose this over alternatives such as get_actor_bounds or get_static_mesh_info, nor any precondition like the mesh needing to be loaded. For a simple read tool this is acceptable minimum-viable guidance, but nothing is explicit.

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