Skip to main content
Glama

Scene Assert

scene_assert
Read-onlyIdempotent

Verify a Maya scene's object positions, bounding boxes, existence, or materials against expected values to confirm modifications produced the intended state.

Instructions

Verify scene state matches expected values.

Use this after modifications to confirm the scene is in the desired state. This is the check step (the last of ICEV's four steps).

bbox_min/bbox_max compare world-axis boxes built from each shape's own box, transformed once: a rotated parent no longer widens them layer by layer, but geometry that does not fill its own box (an L-shape, a character mesh) can still read up to one axis-alignment too wide.

Boundary: Disambiguated from scene_validate (checks relational spatial constraints across zones rather than exact expected values for named objects).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "expectations": "<expectations>"
    },
    "name": "scene_assert"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format - "cos" or "json".cos
session_keyNoMaya session key.
expectationsYesJSON string defining expected state. Format: {"obj_name": {"position": [x,y,z], "bbox_max": [x,y,z], ...}} Supported properties: position, bbox_max, bbox_min, exists, material. Position and bbox values are in Maya's internal centimetres.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.0
    • changedInput schema / properties / expectations / description
      Previous value: -"JSON string defining expected state.\nFormat: {\"obj_name\": {\"position\": [x,y,z], \"bbox_max\": [x,y,z], ...}}\nSupported properties: position, bbox_max, bbox_min, exists, material."New value: +"JSON string defining expected state.\nFormat: {\"obj_name\": {\"position\": [x,y,z], \"bbox_max\": [x,y,z], ...}}\nSupported properties: position, bbox_max, bbox_min, exists, material.\nPosition and bbox values are in Maya's internal centimetres."
  2. First observedv0.4.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuine nuance beyond that: the bbox comparison is built from each shape's own box transformed once, so rotated parents no longer inflate boxes, but non-box-filling geometry can still read up to one axis-alignment too wide. It does not say what a mismatch produces (diff vs. error), which keeps it from a 5.

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 purpose, then usage, then the caveat, then the boundary — a sensible order. The bbox paragraph is dense and slightly awkwardly phrased ('one axis-alignment too wide'), but every sentence carries information an agent needs.

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?

With an output schema present and full parameter documentation, the description need not explain return values, and it covers the non-obvious comparison caveat and sibling routing. The only gap is failure/mismatch behavior, which is a minor omission given the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning about bbox_min/bbox_max semantics — how the comparison boxes are constructed and where they can be misleading. That is interpretation guidance the schema does not provide.

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 ('Verify scene state matches expected values') and immediately distinguishes itself from scene_validate by contrasting exact expected values for named objects against relational spatial constraints across zones. An agent can pick between the two without opening either schema.

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

Usage Guidelines5/5

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

Explicitly says to use it 'after modifications to confirm the scene is in the desired state' and places it as the check step in the ICEV workflow. The Boundary paragraph names the alternative tool and the condition that selects it, leaving nothing to inference.

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