Skip to main content
Glama

validate_assembly

Read-only

Checks an assembly for clearance errors, joint failures, and printability, returning validated state with motion-sweep results and optional printer-tuned screw-hole data.

Instructions

Validate an assembly for correctness and printability.

        Runs clearance checks and joint validations on the assembly,
        returning the validated assembly state with results populated.
        A joint whose interface declares a ``motion`` (see
        ``add_assembly_interface``) is swept through its range with its
        parts' own files: if the parts meet at some pose the joint fails,
        naming that pose and the range it moves freely, and the joint's
        ``motion_sweep`` carries the numbers (the tightest gap and where).

        Args:
            assembly_json: JSON string of the current assembly state.
            printer_id: Optional printer model id (e.g.
                ``"bambu_a1"``).  With it, each joint that drives a
                screw into a printed part gains a ``screw_hole`` block
                (compensated hole diameter, thread engagement,
                install-torque ceiling, lead-in chamfer) tuned for that
                machine where Kiln has data, else a generic starting
                point.  Omit it for the plain validation.
        

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": {
      "assembly_json": "<assembly_json>"
    },
    "name": "validate_assembly"
  }
}

Input Schema

NameRequiredDescriptionDefault
printer_idNoOptional printer model id (e.g. ``"bambu_a1"``). With it, each joint that drives a screw into a printed part gains a ``screw_hole`` block (compensated hole diameter, thread engagement, install-torque ceiling, lead-in chamfer) tuned for that machine where Kiln has data, else a generic starting point. Omit it for the plain validation.
assembly_jsonYesJSON string of the current assembly state.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.1
    • addedInput schema / properties / assembly_json / description
      Added value: +"JSON string of the current assembly state."
    • addedInput schema / properties / printer_id / description
      Added value: +"Optional printer model id (e.g. ``\"bambu_a1\"``).  With it, each joint that drives a screw into a printed part gains a ``screw_hole`` block (compensated hole diameter, thread engagement, install-torque ceiling, lead-in chamfer) tuned for that machine where Kiln has data, else a generic starting point.  Omit it for the plain validation."
  2. Changed3 schema fields changedv1.5.0
    • addedInput schema / properties / assembly_json / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / assembly_json / type
      Removed value: -"string"
    • removedInput schema / properties / printer_id / default
      Removed value: -null
  3. First observedv0.1.0

TDQS

A3.8/5.0
Behavior5/5

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

Annotations only declare it as a safe read operation; the description adds substantial behavior beyond that. It explains the motion-sweep semantics (joints with a declared motion are swept through range using the parts' own files), the exact failure mode (naming the colliding pose and the freely-moving range), where the numbers land (motion_sweep's tightest gap and location), and that printer_id conditionally augments output with a screw_hole block tuned per machine or falling back to a generic starting point.

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 prose body is dense and front-loaded with the purpose, but roughly half the text is an Args block duplicating schema descriptions word for word, which earns no place in a description. The motion-sweep paragraph is long but each clause carries real information; the redundancy is what pulls this down.

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 no output schema, the description carries the return-value burden and does it reasonably well: it says the validated assembly state comes back with results populated, and details the motion_sweep numbers and the conditional screw_hole block. The shape of the populated 'results' and the overall error/failure response remain somewhat vague, which keeps it short of full marks.

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% and the description's Args block reproduces both parameter descriptions essentially verbatim, so no meaning is added beyond the schema. The one nuance the description carries is the consequence of omitting printer_id ('Omit it for the plain validation'), which is already present in the schema text. Baseline 3 applies.

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 specific verb and resource ('Validate an assembly') plus the scope ('clearance checks and joint validations') and the result ('validated assembly state with results populated'). It is distinguishable from add_assembly_interface, which it explicitly references as the place motion is declared. It does not, however, distinguish itself from the close sibling check_assembly_clearances, which the description's mention of clearance checks arguably overlaps with.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the printer_id paragraph ends with 'Omit it for the plain validation,' which is the only explicit use/not-use instruction, and it concerns a parameter rather than the tool. There is no guidance on when to call this versus check_assembly_clearances or the other validate_* siblings, and no stated prerequisites such as needing interfaces added first.

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

Deploy Server

Other Tools