Skip to main content
Glama
ShimmyCAD MCP

ShimmyCAD MCP

by ShimmyCane

acad_set_layer

Update properties of an existing AutoCAD layer—such as color, linetype, lineweight, lock, freeze, visibility, or current status—changing only the fields you specify.

Instructions

Change properties of an existing layer. Only the fields you pass are changed.

Freezing the current layer fails in AutoCAD. Make another layer current first.

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

Input Schema

NameRequiredDescriptionDefault
onNo
nameYes
frozenNo
lockedNo
linetypeNo
color_indexNo
make_currentNo
lineweight_hundredths_mmNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.1/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully adds that mutations are partial and discloses one hard environmental constraint (freezing the current layer fails in AutoCAD, make another current first), which is genuinely non-obvious. It says nothing about permissions, whether changes are reversible, or side effects like what happens to objects already on the layer.

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?

Two short sentences with the core behavior front-loaded and the constraint second; nothing is padded or redundant. The warning could be attached more tightly to the frozen/make_current parameters, but the text earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described. For an eight-parameter mutation tool with zero annotation coverage and zero schema descriptions, however, the definition is thin: the units implied by lineweight_hundredths_mm and the meaning of color_index are left entirely undocumented, as are the interactions between on/frozen/locked/make_current.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across eight parameters, so the description must compensate and largely does not. It explains the semantics of omission broadly (only passed fields change) and touches frozen/make_current via the AutoCAD warning, but color_index, linetype, lineweight_hundredths_mm, locked, and on receive no meaning, unit, or valid-range guidance anywhere.

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?

The description uses a specific verb+resource pair ("Change properties of an existing layer") and adds a scoping clause ("Only the fields you pass are changed") that distinguishes it from a full-replace operation. It does not, however, differentiate it from the sibling acad_change_layer, which a reader could reasonably confuse it with.

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 partial-update semantics imply the when-to-use case (targeted edits rather than wholesale layer replacement), and the AutoCAD warning gives an operational precondition for one field. There is no explicit statement of when to prefer this over acad_change_layer or acad_create_layer, so usage must be inferred.

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