Skip to main content
Glama

Validate scene

scene_validate
Idempotent

Validate a revision against a profile; returns issues with codes, severities, and suggested candidate operations. Default: synchronous, from the stored scene summary. deep=true opens the scene in Blender for real mesh analysis (non-manifold, watertight, degenerate, overhangs) and returns a job handle (idempotencyKey required). General deep validation checks evaluated watertightness (open surfaces warn) and zero-area faces/zero-length edges (errors). additionalChecks can add interior_faces and uv_layers. The queued response states requested coverage; completed reports state actual object counts and skipped/partial checks, including pair-budget limits. intersectionMaxPairTriangleWork can raise cumulative pair work from 8 million to at most 64 million; time and memory caps stay fixed. Validation can be scoped with objectNamePattern/excludeNamePattern. intersectionMaxDepthSamples separately raises optional penetration sampling from 32,000 to at most 256,000 within the same time cap. Sampling completion is separate from candidate-pair coverage. resumeFrom with deep=true continues remaining depth samples on the source's exact revision/settings without repeating collision detection. Only the per-job depth sample budget may change; historical reports without checkpoints cannot resume. Repair suggestions can be alternatives: read suggestedOperationsMode and suggestedOperationsNote before applying them. job_get/job_wait return checked totals plus reportArtifactId. Use job_report with this jobId for complete summary totals and ordered issue/object/print-object pages or section=report for all JSON bytes. Inline details may be truncated; profile three_d_print carries a print report (dimensions mm, volume, filament estimate, bed fit). If a deep run does not give you what you need, mesh.analyze_quality is the SECOND route to the same class of measurement: it reports non_manifold, zero_area_faces, degenerate_edges, sharp_angles, stretched_uvs and interior_faces, and it runs INSIDE a scene_apply batch, so you can measure and repair in one job. A build whose deep validation returned nothing downloaded the GLB and wrote its own topology checker instead, because nothing said this existed.

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

Input Schema

NameRequiredDescriptionDefault
deepNo
profileNoDefault general; continuation inherits its source profile.
projectIdYesStable project ID returned by project_create or projects_list.
resumeFromNoCompleted source validation and immutable report; requires deep=true and a partial resumable depth checkpoint.
revisionIdNo"HEAD" (default) uses the project's current head
idempotencyKeyNoStable caller-chosen key for safe retries of this same request.
additionalChecksNoDeep-only checks added to the profile: interior_faces tests faces whose every edge has more than two face users; uv_layers checks UV presence. Interior-face topology is not an exhaustive volumetric self-intersection test.
objectNamePatternNoRestrict validation to objects whose name matches, e.g. "Watch_*". Without this a studio backdrop is included in the print bounding box, reporting a 42 mm product as 1870 mm and making the three_d_print report unusable.
excludeNamePatternNoDrop objects whose name matches, e.g. "Studio_*". Applied after objectNamePattern. Use this when the parts you care about share no common prefix — which is the normal case for an assembly (Case_Body, Bezel_Ring, Dial_Plate, Crown…). Include-only filtering left no way to say "everything except the backdrop", so the backdrop's own open shell and its bounding box polluted every report and a field build hand-triaged 51 findings down to the 3 that were real.
intersectionMaxDepthSamplesNoDeep-only optional penetration-depth sample budget, shared across detected pairs. Default 32,000; maximum 256,000. Sampling runs after surface-crossing detection and does not change candidate-pair coverage. The existing 20-second deadline and geometry caps still apply. Inspect depthSamplesComplete and each penetrationDepthStatus; a larger budget does not guarantee a depth witness or an exhaustive maximum. Scope objects with objectNamePattern/excludeNamePattern. When pair detection completed and the report contains a partial depth checkpoint, scene_validate.resumeFrom continues its remaining samples on the pinned revision. Otherwise a new scoped validation repeats the work.
intersectionMaxPairTriangleWorkNoDeep-only cumulative intersection pair work: the sum of both objects' evaluated triangle counts for each checked pair. Default 8,000,000; maximum 64,000,000. A larger budget can complete more pairs using cached trees. The 20-second deadline, tree geometry and candidate storage limits remain fixed; optional depth samples have a separate intersectionMaxDepthSamples budget. The job's execution deadline still applies. Retry with a new idempotencyKey; this reruns the check rather than resuming it. Read actual coverage; raising this limit never guarantees a pass.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / intersectionMaxDepthSamples / description
      Previous value: -"Deep-only optional penetration-depth sample budget, shared across detected pairs. Default 32,000; maximum 256,000. Sampling runs after surface-crossing detection and does not change candidate-pair coverage. The existing 20-second deadline and geometry caps still apply. Inspect depthSamplesComplete and each penetrationDepthStatus; a larger budget does not guarantee a depth witness or an exhaustive maximum. Scope objects with objectNamePattern/excludeNamePattern and retry with a new idempotencyKey when needed."New value: +"Deep-only optional penetration-depth sample budget, shared across detected pairs. Default 32,000; maximum 256,000. Sampling runs after surface-crossing detection and does not change candidate-pair coverage. The existing 20-second deadline and geometry caps still apply. Inspect depthSamplesComplete and each penetrationDepthStatus; a larger budget does not guarantee a depth witness or an exhaustive maximum. Scope objects with objectNamePattern/excludeNamePattern. When pair detection completed and the report contains a partial depth checkpoint, scene_validate.resumeFrom continues its remaining samples on the pinned revision. Otherwise a new scoped validation repeats the work."
    • removedInput schema / properties / profile / default
      Removed value: -"general"
    • addedInput schema / properties / profile / description
      Added value: +"Default general; continuation inherits its source profile."
    • addedInput schema / properties / resumeFrom
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Completed source validation and immutable report; requires deep=true and a partial resumable depth checkpoint.",
      +  "properties": {
      +    "artifactId": {
      +      "description": "Artifact ID returned by a completed job or artifacts_list.",
      +      "type": "string"
      +    },
      +    "jobId": {
      +      "description": "Durable job ID returned when an asynchronous operation is queued.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "jobId",
      +    "artifactId"
      +  ],
      +  "type": "object"
      +}
    • removedInput schema / properties / revisionId / default
      Removed value: -"HEAD"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say the call is non-destructive and idempotent; the description adds real operational context beyond that: deep runs queue an asynchronous job and return a handle, idempotencyKey is required, retries with a new key rerun rather than resume, the 20-second deadline and tree/memory caps remain fixed regardless of raised budgets, pair coverage is separate from depth sampling completion, and inline details may be truncated with full results via job_report/reportArtifactId. It also clarifies that the queued response states requested coverage while completed reports state actual counts with skipped/partial checks.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded correctly, but it is a dense ~400-word, semicolon-heavy block covering purpose, budgets, resume semantics, reporting and an alternative route in one wall of text. Several clauses restate schema descriptions, and the closing anecdote about a build writing its own topology checker is narrative padding rather than call guidance, so not every sentence earns its place.

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 an 11-parameter, nested-object tool with no output schema and an async path, the description covers everything an agent needs: how to obtain results (job_get/job_wait for checked totals, job_report with jobId for full pages or section=report), truncation behaviour, budget-versus-cap limits, profile-specific reporting (three_d_print dimensions/volume/filament/bed fit), and the resume path. Nothing material about invocation or result retrieval is left to inference.

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 already 91%, so the schema carries most parameter meaning, but the description still adds relationships rather than repetition: additionalChecks only functions in deep mode, intersectionMaxPairTriangleWork and intersectionMaxDepthSamples are independent budgets (8M→64M pair work vs. 32,000→256,000 samples) that do not extend the fixed time cap, and objectNamePattern/excludeNamePattern compose in that order for scoping. Some phrasing, such as the numeric budget ranges, largely restates the schema, holding this below a 5.

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 opening sentence states a specific verb, resource and return shape: validate a revision against a profile, returning issues with codes, severities and suggested candidate operations. It immediately splits the two modes (synchronous from the stored scene summary vs. deep=true opening the scene in Blender for real mesh analysis) and names a sibling route, mesh.analyze_quality, so an agent can distinguish it from neighbours without opening any 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?

Guidance is explicit about when to pick each mode (default sync vs. deep for non-manifold/watertight/degenerate/overhang analysis), when resumeFrom applies and its preconditions (deep=true, partial depth checkpoint, pinned revision, no checkpoints in historical reports), and when to fall back to mesh.analyze_quality when a deep run is insufficient. It also warns to read suggestedOperationsMode and suggestedOperationsNote before applying repair suggestions, and to inspect depthSamplesComplete/penetrationDepthStatus rather than assuming a budget guarantees a witness.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources