Skip to main content
Glama

cad_build_part

Builds a 3D part from a structured specification, creating or overwriting by name, and returns dimensions, mass, hole callouts, and design-rule check results.

Instructions

按零件 spec 建模(新建或按同名覆盖重建)。返回尺寸、质量、孔标注、设计规则检查结果。 基准:草图在 XY(Z=0),实体向 +Z;面名 top/bottom/front(-Y)/back(+Y)/left(-X)/right(+X)。

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": {
      "spec": "<spec>"
    },
    "name": "cad_build_part"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

The annotations already cover safety: readOnlyHint=false, destructiveHint=false, and idempotentHint=false. The description still adds important behavioral context beyond them: same-name rebuild overwrites existing geometry, and the return payload includes dimensions, mass, hole callouts, and design-rule-check results. However, it does not state whether the overwrite is recoverable through checkpoints or what a design-rule-check failure does.

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?

Three short sentences, with zero padding. The purpose and create/overwrite semantics come first, and the coordinate and face conventions follow, so the order is sensible.

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?

For a complex modeling tool, the definition supplies the essentials an agent needs in order to call it correctly: the create/overwrite semantics and the orientation and face conventions. The output schema covers return values, so describing them again is only mildly redundant. It remains thin on when to use this tool versus the edit and build alternatives.

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?

The schema explicitly documents only the single top-level parameter, spec, at 0% coverage, but its nested $defs (PartSpec, Hole, Boss, Pocket, etc.) are documented extensively. The description adds genuine semantic glue for the spec's coordinate fields, such as the XY (Z=0) sketch plane, the +Z extrusion direction, and the face-name-to-axis mapping (front=-Y, back=+Y, left=-X, right=+X), which the schema's face enum does not explain. It does not, however, walk through the spec's required fields.

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?

States a specific verb+resource: build a part from a part spec (cad_build_part vs cad_build_assembly / cad_build_frame / cad_build_drawing). It also distinguishes the two modes, creating a new part and rebuilding by overwriting a part with the same name, so an agent knows exactly what it produces without opening the schema.

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?

The description implies that this is the tool for generating a part from scratch or regenerating one, but it never states explicitly when to use it instead of cad_edit_existing or cad_build_frame, nor does it cover prerequisites (cad_change_begin, cad_select_target, validation). The guidance is only implied.

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