Skip to main content
Glama

autocad_set_drawing_units

Idempotent

Configure drawing units, precision, angle format, insertion scale, and lighting units, then verify each change was accepted. Use it to standardize CAD drawings and confirm settings actually apply.

Instructions

Apply the Drawing Units dialog settings and verify each was accepted.

Defaults to the project's standard Engineering template (Engineering length at 0.000 precision, Decimal Degrees angle, counter-clockwise, Inches insertion scale, International lighting units). Safe to call repeatedly — setting the same values twice is a no-op.

Args: params (SetDrawingUnitsInput): - length_type, length_precision, angle_type, angle_precision, clockwise, insertion_scale, lighting_units — see field docs.

Returns: str: JSON {"status", "backend", "applied": {var: value}, "verified": {var: bool}, "warnings"?: [...]}. Check "verified" before trusting a setting took effect — a variable AutoCAD rejects is reported there, not hidden.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the 'safe to call repeatedly' line is largely reinforcing structured data. The genuinely additive disclosure is that rejected variables are surfaced in the 'verified'/'warnings' payload rather than silently dropped or thrown as errors, which tells the agent to inspect the result rather than assume full success.

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?

Purpose is front-loaded in the first sentence, followed by grouped defaults, idempotency, Args and Returns sections. Well organized and reasonably sized, though the default template is restated in both the description and the nested schema's own description, which is mild redundancy.

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?

For a one-parameter configuration call, the definition covers purpose, default behavior, idempotency, a field inventory, the exact return shape, and explicit guidance on verifying partial success. Combined with annotations that carry the safety profile, nothing an agent needs to invoke or interpret it is missing.

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?

The measured schema coverage is 0% at the top level (the single 'params' property is an undescribed $ref), but the nested $defs do document each field. The description compensates meaningfully by naming all seven sub-fields and, crucially, spelling out the default template values (Engineering length at 0.000, Decimal Degrees, counter-clockwise, Inches, International) so an agent knows the effect of omitting parameters.

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 and resource ('Apply the Drawing Units dialog settings') plus an extra outcome ('verify each was accepted'). No sibling tool in the list touches drawing units, so this is unambiguously distinguishable from the layer/entity/dimension tools.

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 when to call (to configure drawing units) and tells the agent what happens by default (Engineering template) and that repeated calls are a no-op. However, it never states when in a workflow to invoke it, whether it must precede drawing creation, or any when-not condition.

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