Skip to main content
Glama

cad_object

Destructive

Create, read, update, delete, copy, transform, list, and boolean-operate on CAD geometry objects in the current document.

Instructions

Create, read, update, delete, copy, transform, list or boolean objects.

聚合对象操作。按 ``action`` 派发:create / read / update / delete / copy /
transform / list / boolean。
- ``create``: add an entity by ``type`` (line, circle, arc, rectangle,
  polygon, polyline, box, cylinder, sphere, cone) with ``params``;
  returns the new ``object_id`` and bounding box.
- ``read`` / ``update`` / ``delete`` / ``copy``: inspect, edit (geometry /
  layer / properties), remove, or duplicate an object by ``object_id``.
- ``transform``: apply a 4x4 matrix (column-major, translation in the
  fourth column) for translate / rotate / scale.
- ``list``: enumerate objects, optionally filtered by ``layer``.
- ``boolean``: combine objects (union / subtract / intersect) into a new
  mesh; requires the optional ``boolean`` extra.

When not to use: ``cad_object`` edits the current document's geometry.
For interop file formats use ``cad_file`` (import/export); for JSON
scene round-trips use ``cad_json``; for measurements on existing objects
use ``cad_measure``; for geometric validation use ``cad_validate``.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
objectYesObject action to perform, discriminated by `action`: create, read, update, delete, copy, transform, list or boolean.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bboxNoBounding box
typeNoObject type
layerNoLayer name
actionYesObject action executed
statusYesOperation status
messageNoStatus description
objectsNoObject summaries
geometryNoGeometry parameters
object_idNoObject unique identifier
result_idNoResult object id (boolean / copy)
propertiesNoObject properties
Behavior4/5

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

Annotations already indicate destructiveHint=true, and the description adds that cad_object 'edits the current document's geometry,' making the mutation scope explicit. It also discloses that the boolean action 'requires the optional boolean extra,' which is essential operational context beyond the schema. No contradiction with annotations exists.

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

Conciseness5/5

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

The description is structured with a lead summary, bullet-like action breakdown, and a dedicated 'When not to use' section. Despite being longer than average, every sentence serves a purpose and the layout is scannable for an agent needing to dispatch by action. No fluff or repetition beyond the minor bilingual restatement.

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?

The tool has 8 distinct action variants and an aggregate schema, yet the description covers each action's purpose, key parameters, and return behavior for create. It also addresses optional prerequisites (boolean extra) and sibling tool boundaries, making it fully adequate for selection and invocation even with the output schema present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Though schema description coverage is 100%, the description adds critical semantic detail: it lists the allowed create types (line, circle, arc, etc.), specifies that transform uses a '4x4 matrix (column-major, translation in the fourth column)', and notes that create returns 'the new object_id and bounding box'. These enrich the bare schema parameter descriptions.

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 description opens with 'Create, read, update, delete, copy, transform, list or boolean objects,' a specific verb+resource statement that also enumerates the distinct actions. Each action is further elaborated with its target (e.g., 'add an entity by type', 'apply a 4x4 matrix'), and the tool is explicitly differentiated from siblings like cad_file, cad_json, cad_measure, and cad_validate.

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?

A 'When not to use' section explicitly names alternative tools (cad_file for import/export, cad_json for JSON round-trips, cad_measure for measurements, cad_validate for validation) and clarifies that cad_object edits the current document's geometry. This gives the agent both positive and negative usage signals.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tianshang301/TianshangCAD'

If you have feedback or need assistance with the MCP directory API, please join our Discord server