Skip to main content
Glama

Scene Validate

scene_validate
Read-onlyIdempotent

Validate a Maya scene against spatial constraints such as minimum clearance, object limits, overlaps, and height requirements with a read-only check that reports violations without modifying objects.

Instructions

Validate scene against spatial constraints.

Checks the scene for constraint violations like minimum clearance, object limits, overlaps, and height requirements. This is a read-only check without auto_fix mutations (it cannot modify or repair objects; for automated fixes, see scene_plan with auto_fix=True). Because it is non-destructive, it needs no undo or rollback checkpoint. Requires an active Maya session.

Boundary: Disambiguated from scene_review (a full check of scene quality across 11 checks) and scene_assert (verifies specific numeric values or object existence).

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": {
      "rules": "<rules>"
    },
    "name": "scene_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesYesJSON string with constraint rules. Format: [{"type": "min_clearance", "zone": "entrance", "value": 180}, {"type": "max_objects", "value": 5000}, {"type": "no_overlap", "objects": ["wall_a", "shelf_b"]}, {"type": "min_height", "objects": ["door"], "value": 250}] Types: min_clearance, max_objects, no_overlap, min_height, max_height Length thresholds are in Maya internal centimetres, the same unit as the actual values in a violation.
formatNoOutput format - "cos" or "json".cos
session_keyNoMaya session key.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.0
    • changedInput schema / properties / rules / description
      Previous value: -"JSON string with constraint rules. Format:\n[{\"type\": \"min_clearance\", \"zone\": \"entrance\", \"value\": 180},\n {\"type\": \"max_objects\", \"value\": 5000},\n {\"type\": \"no_overlap\", \"objects\": [\"wall_a\", \"shelf_b\"]},\n {\"type\": \"min_height\", \"objects\": [\"door\"], \"value\": 250}]\nTypes: min_clearance, max_objects, no_overlap, min_height, max_height"New value: +"JSON string with constraint rules. Format:\n[{\"type\": \"min_clearance\", \"zone\": \"entrance\", \"value\": 180},\n {\"type\": \"max_objects\", \"value\": 5000},\n {\"type\": \"no_overlap\", \"objects\": [\"wall_a\", \"shelf_b\"]},\n {\"type\": \"min_height\", \"objects\": [\"door\"], \"value\": 250}]\nTypes: min_clearance, max_objects, no_overlap, min_height, max_height\nLength thresholds are in Maya internal centimetres, the same\nunit as the actual values in a violation."
  2. First observedv0.4.1

TDQS

A4.4/5.0
Behavior4/5

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

Adds genuine context beyond the annotations: the active-Maya-session prerequisite and the explicit statement that it 'cannot modify or repair objects,' which clarifies the non-fix scope of the check. However, the read-only/non-destructive framing and the 'needs no undo or rollback checkpoint' sentence largely restate the already-supplied readOnlyHint, idempotentHint, and destructiveHint=false, so the incremental value is moderate rather than rich.

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, then the fix alternative, then the boundary statement — a sensible ordering for an agent scanning the text. A few sentences are redundant padding, notably the non-destructive/undo-checkpoint remark and the parenthetical restating 'it cannot modify,' but nothing obscures the key guidance.

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

Completeness5/5

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

For a read-only validation tool with an output schema, full parameter coverage, and complete annotations, the description supplies everything an agent needs: what is checked, the session prerequisite, the non-mutating guarantee, and three named sibling boundaries. Return-value details are correctly left to the output schema.

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%; the rules parameter already documents all five constraint types, the JSON array shape, and the centimetre unit convention. The description's mention of 'minimum clearance, object limits, overlaps, and height requirements' only paraphrases rule types that the schema enumerates more precisely, so it adds little meaning beyond the structured field.

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 ('Validate scene against spatial constraints') and immediately enumerates what is checked: minimum clearance, object limits, overlaps, and height requirements. The closing Boundary paragraph explicitly distinguishes it from scene_review (11-check quality review) and scene_assert (numeric/existence verification), so an agent can select it without reading sibling schemas.

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?

Gives explicit when-not guidance: 'without auto_fix mutations... for automated fixes, see scene_plan with auto_fix=True,' naming both the excluded behavior and the alternative tool plus the flag to use. The Boundary section adds two more named alternatives with the conditions that select them, and 'Requires an active Maya session' states a prerequisite.

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