Skip to main content
Glama
LBurny
by LBurny

cad

Destructive

Execute one 3D modeling operation as the unified mutation entry point for creating, editing, deleting, boolean, fillet, and batch steps, with rollback support.

Instructions

Run one CAD modeling operation; the unified mutation entry point.

obj_name is the BASE object, except for loft/sketch/variables/datum_plane/hull (the NEW object); params go in obj_properties. Committed mutations are rollback-able session steps.

Args:
    obj_type: Object type for create_object, e.g. "Part::Box".
    ops: Operation dicts for batch.
    stop_on_error: Stop a batch at the first failure.
    description: One-line purpose of the step; the Steps panel's row label.

Reference: operation_help("<operation>").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opsNo
doc_nameYes
obj_nameNo
obj_typeNo
operationYes
descriptionNo
stop_on_errorNo
obj_propertiesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.7.7
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "create_object",
      -  "edit_object",
      -  "delete_object",
      -  "batch",
      -  "boolean",
      -  "fillet",
      -  "chamfer",
      -  "loft",
      -  "sweep",
      -  "mirror",
      -  "pattern",
      -  "move",
      -  "variables",
      -  "sketch",
      -  "pad",
      -  "pocket",
      -  "revolution",
      -  "groove",
      -  "thickness",
      -  "draft",
      -  "datum_plane",
      -  "hull"
      -]New value: +[
      +  "create_object",
      +  "edit_object",
      +  "delete_object",
      +  "batch",
      +  "boolean",
      +  "fillet",
      +  "chamfer",
      +  "loft",
      +  "sweep",
      +  "mirror",
      +  "pattern",
      +  "move",
      +  "color",
      +  "variables",
      +  "sketch",
      +  "pad",
      +  "pocket",
      +  "revolution",
      +  "groove",
      +  "thickness",
      +  "draft",
      +  "datum_plane",
      +  "hull"
      +]
    • removedInput schema / properties / with_screenshot
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "With Screenshot"
      -}
    • removedOutput schema / $defs / ImageContent
      Removed value: -{
      -  "additionalProperties": true,
      -  "description": "Image content for a message.",
      -  "properties": {
      -    "_meta": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "title": "Meta"
      -    },
      -    "annotations": {
      -      "anyOf": [
      -        {
      -          "$ref": "#/$defs/Annotations"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null
      -    },
      -    "data": {
      -      "title": "Data",
      -      "type": "string"
      -    },
      -    "mimeType": {
      -      "title": "Mimetype",
      -      "type": "string"
      -    },
      -    "type": {
      -      "const": "image",
      -      "title": "Type",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "type",
      -    "data",
      -    "mimeType"
      -  ],
      -  "title": "ImageContent",
      -  "type": "object"
      -}
    • addedOutput schema / properties / result / items / $ref
      Added value: +"#/$defs/TextContent"
    • removedOutput schema / properties / result / items / anyOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/TextContent"
      -  },
      -  {
      -    "$ref": "#/$defs/ImageContent"
      -  }
      -]
  2. First observedv0.4.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so safety is covered. The description adds genuinely new behavioral context beyond the annotations: 'Committed mutations are rollback-able session steps' and that stop_on_error halts a batch at the first failure. It still doesn't say what a mutation can destroy or what permissions are needed.

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-loads the purpose, then the obj_name/obj_properties rule, then the rollback note, then an Args list. Nearly every line earns its place; the Args block mildly restates what the opening sentences imply but stays compact.

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?

An output schema exists, so return values need not be described, and annotations cover the safety profile. For a 23-operation mutation tool the definition supplies the key invocation rules (object semantics, batch error handling, rollback-ability) and delegates operation details to operation_help; only doc_name is left unexplained.

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?

With schema description coverage at 0% and 8 parameters, the description must compensate, and it largely does: it explains obj_name (base object, or new object for loft/sketch/variables/datum_plane/hull), obj_properties (where params go), obj_type, ops, stop_on_error, and description. Only doc_name and operation lack prose, and operation is a self-evident enum.

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 concrete verb and resource ('Run one CAD modeling operation') and adds a role label ('the unified mutation entry point') that separates it from the read/inspect siblings like get_objects, get_view and measure_geometry. It stops short of explicitly contrasting with execute_code or session, so sibling differentiation is only partial.

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: it routes the agent to operation_help('<operation>') for operation-specific guidance and clarifies which ops treat obj_name as new vs. base. There is no explicit when-to-use-this-vs-execute_code/session guidance or when-not condition.

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