Skip to main content
Glama

cad_run

Build parametric CAD headlessly in OS confinement. Read cad_design first: declare literal P = {...} and build() returning a build123d Shape.

Instructions

Build parametric CAD headlessly in OS confinement. Read cad_design first: declare literal P = {...} and build() returning a build123d Shape. Supply script OR script_path; parameters overrides saved named values in one call before derived dimensions. Calls wait for the environment’s exclusive execution slot up to their own deadline and report queue_wait_ms. Each call creates a private immutable subfolder under allowed output_dir, never overwriting previous artifacts. The saved .py and .parameters.json are the recovery checkpoint even after cancellation. Returns independently measured geometry, STL/STEP, six orthographic renders, a perspective view and a contact sheet (with next: read the perspective view before the next change), the closest approach between every pair of solids (bodies), problems, what was checked and not checked, printed: whatever the script wrote with print(), capped at 4000 characters, so a design can report a number it computed, and, in solid mode, purpose and ready: the script's PURPOSE compiled into requirements and evaluated on its use() assembly (held objects, mounts, loads computed from the geometry, facing the user). valid means only that the exported geometry is sound; final: true is recorded only when the design is ready (final_refused says why not).

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": {
      "output_dir": "<output_dir>",
      "name": "<name>"
    },
    "name": "cad_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNosolid returns build123d B-rep with STL/STEP; mesh returns trimesh.Trimesh with STL and an explicit unavailable STEP.solid
nameYesPlain file stem for STL, STEP, Python and parameter artifacts.
roleNoWhat this run is: "design" (the default) for the design itself, or "check" for a fit check part, a reference export or any other run that must never become the model. A check run is never selected as final, evaluates no PURPOSE, and its receipt says role: "check".design
finalNoMark the selected result. The protected cad-result.json records this flag and all returned validation; select completed final records after restart and still inspect valid/checks.
inputsNoExplicit named files [{name, path}]. Content-addressed immutable input bundles are reused; snapshot_bytes_added/reused report storage. Only the selected declared bundle is exposed to build() as INPUTS[name]; nested path is declared for remote path policy.
scriptNoPython source declaring literal named P parameters and build() returning a Shape.
output_dirYesExisting allowed directory; a unique immutable run subfolder is created beneath it.
parametersNoOverrides for names already declared in P; saved values are retained.
timeout_msNoTotal queue wait, preparation, execution and inspection deadline. Default 120000 ms; cancellation kills the dispatched process group.
script_pathNoAllowed saved .py checkpoint to rebuild or edit instead of resending script.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.1.97
    • addedInput schema / properties / role
      Added value: +{
      +  "default": "design",
      +  "description": "What this run is: \"design\" (the default) for the design itself, or \"check\" for a fit check part, a reference export or any other run that must never become the model. A check run is never selected as final, evaluates no PURPOSE, and its receipt says role: \"check\".",
      +  "enum": [
      +    "design",
      +    "check"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "bodies": {
      -        "description": "Solid mode: near pairs of solids screened on tessellations and measured exactly on the STEP where the screen cannot clear them, against a print-in-place clearance from P.print_in_place_clearance_mm or 0.3 mm (touching or overlap only when P.print_in_place is false); touching or overlapping pairs, pairs under the clearance, pairs only screened, solids below the print plate (Z = 0) or above it with no solid under them that reaches it, and labelled bodies that are not exactly one solid.",
      -        "type": "object"
      -      },
      -      "bounds_mm": {
      -        "items": {
      -          "items": {
      -            "type": "number"
      -          },
      -          "type": "array"
      -        },
      -        "type": "array"
      -      },
      -      "checked": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "checks": {
      -        "additionalProperties": {
      -          "type": [
      -            "boolean",
      -            "null"
      -          ]
      -        },
      -        "type": "object"
      -      },
      -      "completed_at": {
      -        "type": "string"
      -      },
      -      "final": {
      -        "type": "boolean"
      -      },
      -      "input_hashes": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "input_manifest": {
      -        "type": "string"
      -      },
      -      "inputs": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "lineage_id": {
      -        "type": "string"
      -      },
      -      "mesh_components": {
      -        "type": "integer"
      -      },
      -      "next": {
      -        "description": "What to do before the next change: look at the perspective render.",
      -        "type": "string"
      -      },
      -      "not_checked": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "parameters": {
      -        "type": "string"
      -      },
      -      "printed": {
      -        "description": "The script's own print() output from this run, capped at 4000 characters (build.log keeps the rest). The script's words, not a measurement by the engine.",
      -        "type": "string"
      -      },
      -      "problems": {
      -        "description": "Defects found by the checks that valid does not cover (fused or too-close bodies, a severed body, a solid below the plate or starting in mid-air, pairs not measured). Each kind lists up to eight, then a count of the rest. Empty when none were found, which is not a pass on anything listed in not_checked.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "queue_wait_ms": {
      -        "type": "integer"
      -      },
      -      "renders": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "result_manifest": {
      -        "type": "string"
      -      },
      -      "script": {
      -        "type": "string"
      -      },
      -      "seconds": {
      -        "type": "number"
      -      },
      -      "size_mm": {
      -        "items": {
      -          "type": "number"
      -        },
      -        "type": "array"
      -      },
      -      "snapshot_bytes_added": {
      -        "type": "integer"
      -      },
      -      "snapshot_bytes_reused": {
      -        "type": "integer"
      -      },
      -      "solid_count": {
      -        "type": "integer"
      -      },
      -      "status": {
      -        "const": "completed",
      -        "type": "string"
      -      },
      -      "step": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "step_unavailable": {
      -        "type": "string"
      -      },
      -      "step_volume_mm3": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "stl": {
      -        "type": "string"
      -      },
      -      "three_mf": {
      -        "description": "When build() returned project_3mf(): the written 3MF project, ready for slice_stl.",
      -        "type": "string"
      -      },
      -      "three_mf_project": {
      -        "description": "When build() returned project_3mf(): base (the edited input alias, or null for a new project), changes, and the written file read back as list_3mf_plates reads it (plates with build_items, parts and filaments; project_filaments).",
      -        "type": "object"
      -      },
      -      "units": {
      -        "const": "mm",
      -        "type": "string"
      -      },
      -      "valid": {
      -        "type": "boolean"
      -      },
      -      "volume_mm3": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "valid",
      -      "status",
      -      "final",
      -      "completed_at",
      -      "lineage_id",
      -      "result_manifest",
      -      "queue_wait_ms",
      -      "snapshot_bytes_added",
      -      "snapshot_bytes_reused",
      -      "script",
      -      "parameters",
      -      "stl",
      -      "step",
      -      "bounds_mm",
      -      "solid_count",
      -      "checks",
      -      "renders"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "code": {
      -        "enum": [
      -          "cad-uv-missing",
      -          "cad-data-volume-refused",
      -          "cad-setup-busy",
      -          "cad-operation-busy",
      -          "cad-queue-timeout",
      -          "cad-not-ready",
      -          "cad-confinement-unavailable",
      -          "cad-disabled",
      -          "cad-failed"
      -        ],
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "retryable": {
      -        "type": "boolean"
      -      },
      -      "status": {
      -        "const": "error",
      -        "type": "string"
      -      },
      -      "storage": {
      -        "properties": {
      -          "expected_download_bytes": {
      -            "type": "integer"
      -          },
      -          "expected_installed_bytes": {
      -            "type": "integer"
      -          },
      -          "installed_bytes": {
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "measured_at": {
      -            "type": "string"
      -          },
      -          "measurement": {
      -            "const": "allocated-last-setup",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "expected_download_bytes",
      -          "expected_installed_bytes",
      -          "installed_bytes",
      -          "measurement"
      -        ],
      -        "type": "object"
      -      },
      -      "suggestion": {
      -        "type": "string"
      -      },
      -      "tool": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "code",
      -      "message",
      -      "tool",
      -      "retryable",
      -      "suggestion"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "bodies": {
      +        "description": "Solid mode: near pairs of solids screened on tessellations and measured exactly on the STEP where the screen cannot clear them, against a print-in-place clearance from P.print_in_place_clearance_mm or 0.3 mm (touching or overlap only when P.print_in_place is false); touching or overlapping pairs, pairs under the clearance, pairs only screened, solids below the print plate (Z = 0) or above it with no solid under them that reaches it, and labelled bodies that are not exactly one solid.",
      +        "type": "object"
      +      },
      +      "bounds_mm": {
      +        "items": {
      +          "items": {
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "type": "array"
      +      },
      +      "checked": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "checks": {
      +        "additionalProperties": {
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "type": "object"
      +      },
      +      "completed_at": {
      +        "type": "string"
      +      },
      +      "draft_reasons": {
      +        "description": "On every valid run that is not final: why not, in plain sentences (the designer did not mark it final; it is not ready, then what blocks it; or it is a check part, not the design). A client that keeps such a run as a draft shows these.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "final": {
      +        "type": "boolean"
      +      },
      +      "final_refused": {
      +        "description": "Why final: true was not recorded, each as the step that fixes it (for example: model the dash as world:dash in use() so the tape mount can be checked). next quotes the first ones; the run is not the model until a run with final: true is ready.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "final_requested": {
      +        "type": "boolean"
      +      },
      +      "input_hashes": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "input_manifest": {
      +        "type": "string"
      +      },
      +      "inputs": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "lineage_id": {
      +        "type": "string"
      +      },
      +      "mesh_components": {
      +        "type": "integer"
      +      },
      +      "next": {
      +        "description": "What to do before the next change: look at the perspective render.",
      +        "type": "string"
      +      },
      +      "not_checked": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "parameters": {
      +        "type": "string"
      +      },
      +      "printed": {
      +        "description": "The script's own print() output from this run, capped at 4000 characters (build.log keeps the rest). The script's words, not a measurement by the engine.",
      +        "type": "string"
      +      },
      +      "problems": {
      +        "description": "Defects found by the checks that valid does not cover (fused or too-close bodies, a severed body, a solid below the plate or starting in mid-air, pairs not measured). Each kind lists up to eight, then a count of the rest. Empty when none were found, which is not a pass on anything listed in not_checked.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "purpose": {
      +        "description": "Solid mode: what PURPOSE says the part is for (for, modelled_on), the product classes its words put it in, each requirement compiled from it with status pass, fail or not_modelled and what it says (held objects sit on the part, each mount touches its world surface, the exposed face of a held screen turns to the user's eye, tape stress and resting stability under the computed loads), the loads at the mounts (gravity, jolts, a hand's press), and blocked: what keeps it from ready.",
      +        "type": "object"
      +      },
      +      "queue_wait_ms": {
      +        "type": "integer"
      +      },
      +      "ready": {
      +        "description": "Solid mode: the design's PURPOSE is declared and every requirement it compiles to passed on use(). final: true is recorded only when ready. Absent for mesh mode and 3MF projects.",
      +        "type": "boolean"
      +      },
      +      "renders": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "result_manifest": {
      +        "type": "string"
      +      },
      +      "role": {
      +        "description": "The run's role as cad_run was given it: \"design\", or \"check\" for a check part or reference export that is never the model. Every receipt carries it.",
      +        "enum": [
      +          "design",
      +          "check"
      +        ],
      +        "type": "string"
      +      },
      +      "script": {
      +        "type": "string"
      +      },
      +      "seconds": {
      +        "type": "number"
      +      },
      +      "size_mm": {
      +        "items": {
      +          "type": "number"
      +        },
      +        "type": "array"
      +      },
      +      "snapshot_bytes_added": {
      +        "type": "integer"
      +      },
      +      "snapshot_bytes_reused": {
      +        "type": "integer"
      +      },
      +      "solid_count": {
      +        "type": "integer"
      +      },
      +      "status": {
      +        "const": "completed",
      +        "type": "string"
      +      },
      +      "step": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "step_unavailable": {
      +        "type": "string"
      +      },
      +      "step_volume_mm3": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "stl": {
      +        "type": "string"
      +      },
      +      "three_mf": {
      +        "description": "When build() returned project_3mf(): the written 3MF project, ready for slice_stl.",
      +        "type": "string"
      +      },
      +      "three_mf_project": {
      +        "description": "When build() returned project_3mf(): base (the edited input alias, or null for a new project), changes, and the written file read back as list_3mf_plates reads it (plates with build_items, parts and filaments; project_filaments).",
      +        "type": "object"
      +      },
      +      "units": {
      +        "const": "mm",
      +        "type": "string"
      +      },
      +      "valid": {
      +        "type": "boolean"
      +      },
      +      "volume_mm3": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "valid",
      +      "status",
      +      "final",
      +      "completed_at",
      +      "lineage_id",
      +      "result_manifest",
      +      "queue_wait_ms",
      +      "snapshot_bytes_added",
      +      "snapshot_bytes_reused",
      +      "script",
      +      "parameters",
      +      "stl",
      +      "step",
      +      "bounds_mm",
      +      "solid_count",
      +      "checks",
      +      "renders"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "code": {
      +        "enum": [
      +          "cad-uv-missing",
      +          "cad-data-volume-refused",
      +          "cad-setup-busy",
      +          "cad-operation-busy",
      +          "cad-queue-timeout",
      +          "cad-not-ready",
      +          "cad-confinement-unavailable",
      +          "cad-disabled",
      +          "cad-failed"
      +        ],
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "retryable": {
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "const": "error",
      +        "type": "string"
      +      },
      +      "storage": {
      +        "properties": {
      +          "expected_download_bytes": {
      +            "type": "integer"
      +          },
      +          "expected_installed_bytes": {
      +            "type": "integer"
      +          },
      +          "installed_bytes": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "measured_at": {
      +            "type": "string"
      +          },
      +          "measurement": {
      +            "const": "allocated-last-setup",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "expected_download_bytes",
      +          "expected_installed_bytes",
      +          "installed_bytes",
      +          "measurement"
      +        ],
      +        "type": "object"
      +      },
      +      "suggestion": {
      +        "type": "string"
      +      },
      +      "tool": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "code",
      +      "message",
      +      "tool",
      +      "retryable",
      +      "suggestion"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changedv1.1.94
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "bodies": {
      -        "description": "Solid mode: near pairs of solids screened on tessellations and measured exactly on the STEP where the screen cannot clear them, against a print-in-place clearance from P.print_in_place_clearance_mm or 0.3 mm (touching or overlap only when P.print_in_place is false); touching or overlapping pairs, pairs under the clearance, pairs only screened, solids below the print plate (Z = 0) or above it with no solid under them that reaches it, and labelled bodies that are not exactly one solid.",
      -        "type": "object"
      -      },
      -      "bounds_mm": {
      -        "items": {
      -          "items": {
      -            "type": "number"
      -          },
      -          "type": "array"
      -        },
      -        "type": "array"
      -      },
      -      "checked": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "checks": {
      -        "additionalProperties": {
      -          "type": [
      -            "boolean",
      -            "null"
      -          ]
      -        },
      -        "type": "object"
      -      },
      -      "completed_at": {
      -        "type": "string"
      -      },
      -      "final": {
      -        "type": "boolean"
      -      },
      -      "input_hashes": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "input_manifest": {
      -        "type": "string"
      -      },
      -      "inputs": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "lineage_id": {
      -        "type": "string"
      -      },
      -      "mesh_components": {
      -        "type": "integer"
      -      },
      -      "next": {
      -        "description": "What to do before the next change: look at the perspective render.",
      -        "type": "string"
      -      },
      -      "not_checked": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "parameters": {
      -        "type": "string"
      -      },
      -      "printed": {
      -        "description": "The script's own print() output from this run, capped at 4000 characters (build.log keeps the rest). The script's words, not a measurement by the engine.",
      -        "type": "string"
      -      },
      -      "problems": {
      -        "description": "Defects found by the checks that valid does not cover (fused or too-close bodies, a severed body, a solid below the plate or starting in mid-air, pairs not measured). Each kind lists up to eight, then a count of the rest. Empty when none were found, which is not a pass on anything listed in not_checked.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "queue_wait_ms": {
      -        "type": "integer"
      -      },
      -      "renders": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "result_manifest": {
      -        "type": "string"
      -      },
      -      "script": {
      -        "type": "string"
      -      },
      -      "seconds": {
      -        "type": "number"
      -      },
      -      "size_mm": {
      -        "items": {
      -          "type": "number"
      -        },
      -        "type": "array"
      -      },
      -      "snapshot_bytes_added": {
      -        "type": "integer"
      -      },
      -      "snapshot_bytes_reused": {
      -        "type": "integer"
      -      },
      -      "solid_count": {
      -        "type": "integer"
      -      },
      -      "status": {
      -        "const": "completed",
      -        "type": "string"
      -      },
      -      "step": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "step_unavailable": {
      -        "type": "string"
      -      },
      -      "step_volume_mm3": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "stl": {
      -        "type": "string"
      -      },
      -      "units": {
      -        "const": "mm",
      -        "type": "string"
      -      },
      -      "valid": {
      -        "type": "boolean"
      -      },
      -      "volume_mm3": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "valid",
      -      "status",
      -      "final",
      -      "completed_at",
      -      "lineage_id",
      -      "result_manifest",
      -      "queue_wait_ms",
      -      "snapshot_bytes_added",
      -      "snapshot_bytes_reused",
      -      "script",
      -      "parameters",
      -      "stl",
      -      "step",
      -      "bounds_mm",
      -      "solid_count",
      -      "checks",
      -      "renders"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "code": {
      -        "enum": [
      -          "cad-uv-missing",
      -          "cad-data-volume-refused",
      -          "cad-setup-busy",
      -          "cad-operation-busy",
      -          "cad-queue-timeout",
      -          "cad-not-ready",
      -          "cad-confinement-unavailable",
      -          "cad-disabled",
      -          "cad-failed"
      -        ],
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "retryable": {
      -        "type": "boolean"
      -      },
      -      "status": {
      -        "const": "error",
      -        "type": "string"
      -      },
      -      "storage": {
      -        "properties": {
      -          "expected_download_bytes": {
      -            "type": "integer"
      -          },
      -          "expected_installed_bytes": {
      -            "type": "integer"
      -          },
      -          "installed_bytes": {
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "measured_at": {
      -            "type": "string"
      -          },
      -          "measurement": {
      -            "const": "allocated-last-setup",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "expected_download_bytes",
      -          "expected_installed_bytes",
      -          "installed_bytes",
      -          "measurement"
      -        ],
      -        "type": "object"
      -      },
      -      "suggestion": {
      -        "type": "string"
      -      },
      -      "tool": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "code",
      -      "message",
      -      "tool",
      -      "retryable",
      -      "suggestion"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "bodies": {
      +        "description": "Solid mode: near pairs of solids screened on tessellations and measured exactly on the STEP where the screen cannot clear them, against a print-in-place clearance from P.print_in_place_clearance_mm or 0.3 mm (touching or overlap only when P.print_in_place is false); touching or overlapping pairs, pairs under the clearance, pairs only screened, solids below the print plate (Z = 0) or above it with no solid under them that reaches it, and labelled bodies that are not exactly one solid.",
      +        "type": "object"
      +      },
      +      "bounds_mm": {
      +        "items": {
      +          "items": {
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "type": "array"
      +      },
      +      "checked": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "checks": {
      +        "additionalProperties": {
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "type": "object"
      +      },
      +      "completed_at": {
      +        "type": "string"
      +      },
      +      "final": {
      +        "type": "boolean"
      +      },
      +      "input_hashes": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "input_manifest": {
      +        "type": "string"
      +      },
      +      "inputs": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "lineage_id": {
      +        "type": "string"
      +      },
      +      "mesh_components": {
      +        "type": "integer"
      +      },
      +      "next": {
      +        "description": "What to do before the next change: look at the perspective render.",
      +        "type": "string"
      +      },
      +      "not_checked": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "parameters": {
      +        "type": "string"
      +      },
      +      "printed": {
      +        "description": "The script's own print() output from this run, capped at 4000 characters (build.log keeps the rest). The script's words, not a measurement by the engine.",
      +        "type": "string"
      +      },
      +      "problems": {
      +        "description": "Defects found by the checks that valid does not cover (fused or too-close bodies, a severed body, a solid below the plate or starting in mid-air, pairs not measured). Each kind lists up to eight, then a count of the rest. Empty when none were found, which is not a pass on anything listed in not_checked.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "queue_wait_ms": {
      +        "type": "integer"
      +      },
      +      "renders": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "result_manifest": {
      +        "type": "string"
      +      },
      +      "script": {
      +        "type": "string"
      +      },
      +      "seconds": {
      +        "type": "number"
      +      },
      +      "size_mm": {
      +        "items": {
      +          "type": "number"
      +        },
      +        "type": "array"
      +      },
      +      "snapshot_bytes_added": {
      +        "type": "integer"
      +      },
      +      "snapshot_bytes_reused": {
      +        "type": "integer"
      +      },
      +      "solid_count": {
      +        "type": "integer"
      +      },
      +      "status": {
      +        "const": "completed",
      +        "type": "string"
      +      },
      +      "step": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "step_unavailable": {
      +        "type": "string"
      +      },
      +      "step_volume_mm3": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "stl": {
      +        "type": "string"
      +      },
      +      "three_mf": {
      +        "description": "When build() returned project_3mf(): the written 3MF project, ready for slice_stl.",
      +        "type": "string"
      +      },
      +      "three_mf_project": {
      +        "description": "When build() returned project_3mf(): base (the edited input alias, or null for a new project), changes, and the written file read back as list_3mf_plates reads it (plates with build_items, parts and filaments; project_filaments).",
      +        "type": "object"
      +      },
      +      "units": {
      +        "const": "mm",
      +        "type": "string"
      +      },
      +      "valid": {
      +        "type": "boolean"
      +      },
      +      "volume_mm3": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "valid",
      +      "status",
      +      "final",
      +      "completed_at",
      +      "lineage_id",
      +      "result_manifest",
      +      "queue_wait_ms",
      +      "snapshot_bytes_added",
      +      "snapshot_bytes_reused",
      +      "script",
      +      "parameters",
      +      "stl",
      +      "step",
      +      "bounds_mm",
      +      "solid_count",
      +      "checks",
      +      "renders"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "code": {
      +        "enum": [
      +          "cad-uv-missing",
      +          "cad-data-volume-refused",
      +          "cad-setup-busy",
      +          "cad-operation-busy",
      +          "cad-queue-timeout",
      +          "cad-not-ready",
      +          "cad-confinement-unavailable",
      +          "cad-disabled",
      +          "cad-failed"
      +        ],
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "retryable": {
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "const": "error",
      +        "type": "string"
      +      },
      +      "storage": {
      +        "properties": {
      +          "expected_download_bytes": {
      +            "type": "integer"
      +          },
      +          "expected_installed_bytes": {
      +            "type": "integer"
      +          },
      +          "installed_bytes": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "measured_at": {
      +            "type": "string"
      +          },
      +          "measurement": {
      +            "const": "allocated-last-setup",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "expected_download_bytes",
      +          "expected_installed_bytes",
      +          "installed_bytes",
      +          "measurement"
      +        ],
      +        "type": "object"
      +      },
      +      "suggestion": {
      +        "type": "string"
      +      },
      +      "tool": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "code",
      +      "message",
      +      "tool",
      +      "retryable",
      +      "suggestion"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Addedv1.1.93

TDQS

A4.4/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: queueing via an exclusive execution slot, queue_wait_ms reporting, immutable run subfolders, cancellation checkpointing, output artifacts, and the distinction between valid geometry and a final selected result. These details directly explain side effects, persistence, and execution semantics for a non-read-only tool.

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

Conciseness2/5

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

The content is valuable but presented as a very long, dense paragraph with several overloaded sentences. It also spends significant space enumerating return artifacts even though an output schema exists, and the run-on structure makes it harder to scan than necessary.

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?

Given the tool's complexity, annotations, rich input schema, and output schema, the description covers enough for correct invocation. It explains execution constraints, persistence, validation, final selection, and recovery behavior, leaving no major operational gap.

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. The description adds useful meaning about script contents (literal P and build() returning a Shape), parameter overrides occurring before derived dimensions, and saved .py/.parameters.json acting as recovery checkpoints.

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 first sentence states a specific verb and resource: build parametric CAD headlessly, with explicit script/parameters mechanics. It distinguishes the design flow from check runs and points to cad_design as a prerequisite, so an agent can identify the tool's role.

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 description gives clear operational guidance: read cad_design first, supply script OR script_path, and use role="check" for runs that must never become the model. It lacks explicit sibling-level alternatives, but the context for when this tool is appropriate is strong.

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