Skip to main content
Glama

cad_save_as

Save the active CAD drawing to a new absolute DWG path for explicit save-as or copy requests without overwriting, then return a refreshed document token and file hash.

Instructions

Save the bound active document to a new absolute DWG path via ActiveX. Requires live writes and token; no overwrite. Returns refreshed document token and file hash.

Creates a new file, so explicit_request=true is required and only for a user request to save as / save a copy.
Ordinary edits stay in the current drawing; save it in place with cad_mutate operation=save.

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": {
      "operation_id": "<operation_id>",
      "document_token": "<document_token>",
      "path": "<path>"
    },
    "name": "cad_save_as"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
operation_idYes
document_tokenYes
explicit_requestNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses that live writes and a token are required, that existing files are not overwritten, and that the call returns a refreshed document token and file hash. It stops short of saying what error surfaces when the path already exists or what permissions/scope the token must have.

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 core behavior, prerequisites, and return values are front-loaded in the first sentence, and the second paragraph is a short routing rule. No filler sentences; every line carries operational meaning.

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 mutation tool with no annotations and no output schema, the definition covers prerequisites, overwrite behavior, and return values, which is close to what an agent needs to call it safely. Remaining gaps are failure-mode detail (path collision, token expiry) rather than anything blocking correct invocation.

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 description coverage is 0%, so the description must compensate, and it does for most parameters: path is constrained to a new absolute DWG path with no overwrite, document_token is tied to the bound active document and refreshed on return, and explicit_request's required value and meaning are spelled out. operation_id is never explained in either the schema or the description, leaving one gap.

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 names a specific verb and resource (save the bound active document) plus the output format and destination type (a new absolute DWG path via ActiveX). It also explicitly distinguishes itself from the in-place save path on cad_mutate, so an agent can route between the two without opening either schema.

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?

It states the gating condition (explicit_request=true, only for a user request to save as / save a copy) and names the alternative for the common case (cad_mutate operation=save for ordinary edits). Both when-to-use and when-not-to-use are covered.

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