Skip to main content
Glama

layer

Create, list, and manage CAD drawing layers: set current, adjust properties, freeze/thaw, and lock/unlock to organize drawings.

Instructions

Layer creation and management.

Operations:
  list            — List all layers with properties.
  create          — data: {name, color?, linetype?}
  set_current     — data: {name}
  set_properties  — data: {name, color?, linetype?, lineweight?}
  freeze          — data: {name}
  thaw            — data: {name}
  lock            — data: {name}
  unlock          — data: {name}

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": "<operation>"
    },
    "name": "layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo
operationYes
include_screenshotNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations supply only readOnlyHint=false, so the description must carry the behavioral load; it does disclose the mutation surface by naming create/set_properties/freeze/lock operations and their payload fields. It omits error semantics (what happens if the layer already exists or is missing), whether operations are idempotent, what list returns, and what include_screenshot does.

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 purpose sentence followed by a scannable operation table with zero filler. The repeated "data: {name}" across five operations is slightly redundant and could be collapsed, but overall it is tight and well structured.

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 an eight-operation tool with no output schema and minimal annotations, the description covers the operation set and payload fields adequately enough to invoke most operations correctly. The gaps are the undocumented include_screenshot flag and the absence of any return-value or failure-mode context for `list` and the mutating operations.

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

Parameters3/5

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

Schema coverage is 0%, so the description is the only documentation for parameters — and it does document the per-operation shape of the `data` object (name, color, linetype, lineweight) and the valid values for `operation`, which the schema leaves as a bare string with no enum. It never mentions `include_screenshot`, leaving one of three parameters completely undocumented.

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 opens with a specific verb+resource ("Layer creation and management") and then enumerates eight concrete operations, so an agent knows exactly what domain this tool covers. It is distinguishable from siblings like block or entity by the layer-specific vocabulary, though it never explicitly contrasts itself with them.

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 operation list implies when each sub-action applies (list to enumerate, create to add, freeze/thaw and lock/unlock to toggle state), which is more than nothing. However, there is no explicit when-to-use guidance, no prerequisites (does the layer need to exist, must a drawing be active?), and no mention of alternatives among the sibling tools.

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