Skip to main content
Glama

Measure Objects

measure_objects
Read-only

Measure object surface distances in world space or cast rays to find gaps, closest points, and overlaps for fitting parts.

Instructions

Measure between objects' surfaces as exported, in world space, or cast a ray. Returns: per pair distance, closest points, touching, overlapping, overlap_faces, inside; ray object, location, normal, face. WHEN TO CALL: to fit parts, find gaps.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "measure_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
originNoRay start
objectsNo2 to 16; a ray may hit only these
directionNoRay, world

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description's real contribution is enumerating return fields (distance, closest points, touching, overlapping, inside, ray hit location/normal/face), which matters because there is no output schema; however it says nothing about coordinate units, precision, or what happens when objects are not 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?

Front-loaded and telegraphic: purpose first, then returns, then usage. Dense field lists are efficient here, though a couple of tokens ('as exported') cost clarity without earning their space.

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

Completeness3/5

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

With 0 required parameters and two distinct modes, an agent needs to know which parameters belong to which mode (objects pairs vs origin+direction ray) and that is left implicit. The return-field inventory compensates well for the missing output schema, but the mode-selection gap keeps this from being complete.

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 origin, objects, and direction are already documented in the schema. The description only adds the 'in world space' framing for direction, which the schema already says ('Ray, world'), so it adds little meaning beyond structured data.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource (measure surfaces / cast a ray) and names the two operating modes plus the coordinate space. It is distinguishable from siblings like create_collision or get_mesh, though the phrase 'as exported' is cryptic and doesn't clarify what a measured surface actually is.

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

Usage Guidelines4/5

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

The explicit 'WHEN TO CALL: to fit parts, find gaps' line gives two concrete task scenarios that map well onto the measurement capability. It offers no when-not conditions and does not point at any alternative sibling, so it stops short of full routing guidance.

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