Skip to main content
Glama
U-C4N
by U-C4N

Save As Template

drawing_template_save

Save the current AutoCAD drawing as a reusable template (.dwt live, .dxf headless), optionally embedding a description in DWT summary comments for consistent new drawings.

Instructions

AutoCAD's SAVEAS → Drawing Template, on both engines.

Live AutoCAD writes a real .dwt (SaveAs(path, ac2018_Template)) and puts description into the template's summary Comments; the active document is rebound to the new file, as SAVEAS does. Headlessly a .dxf template is written — drawing_new(template=<path>) opens it — and a .dwt request is refused with capability dwt_write (the message names the DXF route and the COM route); a description is reported description_written: false because DXF has nowhere to keep it. Any other suffix, and any path outside the allowed directories, is refused before a byte is written.

Pack: core · lean: no (drawing_save_as is not lean either).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoTemplate name for the report (default: the file stem).
pathYesDestination .dwt (live AutoCAD) or .dxf (either engine).
descriptionNoTemplate description → DWT summary Comments on the live engine.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only supply destructiveHint=false, so the description carries the behavioral load and does it well: engine-dependent output format, document rebinding (SAVEAS side effect), refusal of non-.dwt/.dxf suffixes and out-of-allowed-directory paths before any bytes are written, and `description_written: false` on the DXF route. This is far beyond what the annotations convey.

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?

Front-loaded with the core verb and the engine split, then the edge cases. Dense but nearly every clause carries distinct information; the trailing 'Pack: core · lean: no' metadata is the only padding.

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?

Output schema exists, so return-value explanation isn't needed. For a save-as mutation with engine divergence, refusals, and a description-loss edge case, the description covers everything an agent needs to call it correctly, including the failure surface.

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?

Schema coverage is 100%, so the baseline is 3; the description still adds value by tying `description` to the DWT summary Comments and confirming `path` must end in .dwt or .dxf. It does not elaborate on the `name` report parameter beyond what the schema already says.

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 (SAVEAS → Drawing Template) and immediately pins the two engines it works on. It explicitly names the sibling `drawing_save_as` and distinguishes itself from it, so an agent can select it 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 Guidelines4/5

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

Gives clear conditional guidance: live AutoCAD writes a real `.dwt`, headless writes `.dxf`, and a `.dwt` request is refused with a named capability. It does not, however, spell out when an agent should prefer this over `drawing_save_as`, `drawing_export_dxf`, or `template_apply_layers` as alternatives — that routing is only implied.

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

Deploy Server

Other Tools