Skip to main content
Glama

cad_build_drawing

Generates engineering drawings from a spec, including sheet/scale selection, views, dimensions, hole callouts, title blocks, BOM, and drawing checks.

Instructions

按出图 spec 生成工程图:自动选图幅比例、视图、总体尺寸、孔坐标与孔标注、技术要求、标题栏、明细表,并做出图检查。

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_drawing"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false, so the agent knows this writes without going outside the session. The description adds real behavioral value by disclosing that drawing checks are run and that much of the drawing is auto-derived from company rules rather than agent-supplied. It does not say what file is produced, whether an existing drawing of the same name is overwritten, or what happens when the check fails.

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?

A single, front-loaded sentence: verb + resource first, then a compact enumeration of exactly what is produced. No filler, no restating of the tool name, and every clause maps to a real capability the agent needs to know about.

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 generator with an output schema present, the description covers scope and the auto-generation behaviors an agent must anticipate, which is the essential part. The remaining gaps — return value shape is covered by the output schema, but prerequisites for spec.model and drawing-overwrite behavior are not — keep it short of complete.

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?

Only one top-level parameter exists, and the nested DrawingSpec schema already carries per-field descriptions, so the baseline is high. The description corroborates the semantics of key fields by naming sheet/scale selection, view generation, dimensions and hole callouts, which tells the agent these are largely automatic rather than to be hand-authored. It does not explain how spec fields are ignored when a setting is auto.

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 deliverable: generate an engineering drawing (工程图) from a drawing spec, and enumerates the concrete outputs (sheet/scale, views, dimensions, hole callouts, title block, BOM table, drawing checks). That is enough to distinguish it as the drawing-generation step. It never differentiates itself from cad_build_part/cad_build_assembly or says where drawing creation fits after modeling, so no sibling routing.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no stated prerequisite such as the model having to be built or opened in the current session. The agent has to infer from the name and schema that this is the post-modeling drawing step and that spec.model must reference existing geometry. No alternatives are named for revising an existing drawing (e.g., cad_edit_existing).

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