Skip to main content
Glama

cad_mutate

Applies authorized live edits—lines, circles, arcs, polylines, text, dimensions, hatches, properties, and saves—to a CAD document, guarded by a session write flag and document token.

Instructions

Authorized live line/circle/arc/polyline/text/dimension/hatch/properties/save; angles are degrees. dimension accepts rotation (rotated dim) and text_override containing exactly one <> measured value. hatch fills either an existing closed polyline/circle boundary handle or explicit points drawn as the closed outline on boundary_layer (optional inner handles, inner_circles [[x,y,r]], pattern ANSI31/ANSI32/ANSI37/NET/SOLID, scale, angle); the result lists outline_handles it drew. Requires session write flag and document token. Interrupted operations stay uncertain and are never automatically replayed.

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": {
      "operation_id": "<operation_id>",
      "document_token": "<document_token>",
      "operation": "<operation>",
      "arguments": "<arguments>"
    },
    "name": "cad_mutate"
  }
}

Input Schema

NameRequiredDescriptionDefault
argumentsYes
operationYes
operation_idYes
document_tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does reasonably well: it discloses the authorization requirement (write flag plus document token), the failure semantics ('interrupted operations stay uncertain and are never automatically replayed'), and one output detail ('the result lists outline_handles it drew'). It still omits whether mutations overwrite or destroy existing entities and whether operations are atomic, which matters for a destructive tool.

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?

Almost every clause carries real information, but the text is delivered as a semicolon-chained fragment with deeply nested parentheticals, making it hard to parse on first read. The capability list is correctly front-loaded, but the hatch and dimension detail crowds out structural clarity.

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

Completeness3/5

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

This is a complex, high-blast-radius tool with a nested free-form arguments object, 0% schema coverage, and no output schema, so the description has to do a lot. It covers the operation vocabulary, angle units, prerequisites, and failure behavior, but leaves the argument contract for most operations and the return shape for everything except hatch undocumented.

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 coverage is 0% and all four parameters are required, including an open-ended 'arguments' object with additionalProperties, so the description must compensate. It does so for dimension and hatch (rotation, text_override with one <> token, boundary handles, inner_circles, pattern names, scale, angle), but says nothing about the arguments shape for line/circle/arc/polyline/text/properties/save, nothing about the meaning of operation_id, and never states that 'operation' takes one of the enumerated names.

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?

The description names a concrete verb (mutate) and enumerates the exact entity types and actions it performs: line, circle, arc, polyline, text, dimension, hatch, properties, save. That is far more specific than the bare name. It does not, however, explicitly distinguish itself from read/preview siblings such as cad_read_entities or cad_preview, so it stops short of a 5.

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 by the operation list and the stated prerequisite ('Requires session write flag and document token'), so an agent can infer this is the tool for any write to the drawing. There is no explicit when-not guidance, no mention of how it relates to siblings like cad_operation or cad_preview, and no note on whether reads should go elsewhere.

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