Skip to main content
Glama
auto-autocad-mcp

auto-autocad-mcp

by xoaicc

sheet set

auto_sheet_set

Groups AutoCAD layouts into a publish-ready sheet set, writes a .dsd file, and can plot a multi-page PDF with plot-style checks and optional discovery.

Instructions

Group shopdrawings into one publish set and, with publish, plot it.

Each entry is {dwg, layout, setup?}: the drawing to take the sheet from, the layout tab on it, and optionally the page setup to plot that sheet with (blank = the layout's own). dwg may be relative to base_dir.

With discover (and no entries) the sheet list is read from the tree under base_dir instead of being supplied: every drawing's paper-space layouts, minus the empty ones, ordered by drawing then layout. include / exclude narrow that scan.

The set is written as a .dsd sheet list at dsd_path -- the file AutoCAD's Publish dialog and -PUBLISH both read -- and pdf_path is the single multi-page PDF the set targets (default: dsd_path with a .pdf suffix). publish runs -PUBLISH on the live backend and reports the PDF it wrote; a row whose drawing is not on disk is reported in issues and left out, since -PUBLISH fails the whole job on it.

Publishing holds the seat clear of the DST File Not Found dialog (the Sheet Set Manager is stopped from opening itself for the duration, and a box that still appears is pressed away), and judges success by the PDF on disk: see publish_set for the state it reports.

Before publishing, every sheet's layout is read and its plot style checked against the styles AutoCAD has installed. A sheet naming a style that is not installed -- -PUBLISH would plot it anyway, leaving a warning only in the plot log -- blocks the run: nothing is plotted and plot_styles names the gap. Fix the layout's page setup (or install the style file) and publish again; pass allow_missing_styles to publish despite a known gap (the overridden flag in plot_styles says the override was used).

A set published straight from discovery comes out in discovery order -- by drawing file name -- which is not the reference OUTPUT's order. order reorders the sheets the way OUTPUT groups them: by the sheet number a layout ends with (every .01 sheet, then every .02), and by code inside a run. The sheets that belong to no run, or that close one, are named in pin ({"layout": ..., "where": "first" | "last"}): the drawing list goes first, the elevation and the title last in their own run. A layout whose name carries no sheet number (the elevation is laid out as plain Layout1) names the run it closes: "run": "01". See order_rows.

plot_style moves every sheet onto one plot style for the run -- the project's own colour table (the profile's plot.style, and the default when this is left blank), which is what gives OUTPUT its screened grey background, where the INPUT layouts are not uniform -- and takes the change back once the set is plotted, so no drawing is written. Because the run replaces every layout's style anyway, a forced style is not blocked by the styles the layouts already name: the change the seat did not take is in plot_style_change, and what the undo put back in plot_style_restored.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "auto_sheet_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinNo
orderNo
entriesNo
excludeNo
includeNo
publishNo
base_dirNo
discoverNo
dsd_pathNo
pdf_pathNo
plot_styleNo
allow_missing_stylesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.2/5.0
Behavior5/5

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

Far beyond the terse annotations, the description discloses that it writes a `.dsd` file, suppresses the DST File Not Found dialog, validates plot styles before plotting, blocks the run on uninstalled styles, reports missing drawings in `issues`, and temporarily overrides then restores plot styles so no drawing is written. These are exactly the mutation side effects an agent needs to know given readOnlyHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is front-loaded reasonably, but the prose runs long and dense, with several parenthetical asides about plot-style undo mechanics and dialog suppression that could be compressed. Every sentence is relevant, yet the ratio of explanation to callable instruction is high for a tool description.

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 12-parameter tool with no schema descriptions, the definition covers the write targets, defaults, validation behavior, ordering semantics, and failure modes, and it references `state`, `issues`, `plot_styles`, and `plot_style_change` return fields even though an output schema exists. Nothing essential to calling it correctly appears absent.

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?

With 0% schema description coverage and 12 parameters, the description carries the full burden and mostly does: it defines the `{dwg, layout, setup?}` entry shape, `dwg`-relative-to-`base_dir`, the `pdf_path` default, the `pin` object shape with `where` values, and the meaning of `order` and `allow_missing_styles`. Gaps remain on `base_dir` itself and on how `include`/`exclude` match, keeping it below 5.

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 opening sentence gives a concrete verb and resource ('Group shopdrawings into one publish set') and distinguishes the two operating modes via the `publish` flag. It never contrasts itself with the sibling tools `auto_sheet_build` or `auto_sheet_discover`, even though the built-in `discover` mode plausibly overlaps with the latter, so an agent must infer the boundary.

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?

Mode selection is spelled out well: `entries` supplies an explicit list, while `discover` with no `entries` scans the tree under `base_dir`, and `include`/`exclude` narrow that scan. It also states when to set `allow_missing_styles` and when to use `order`/`pin`. What is missing is guidance on choosing this tool over the sibling sheet tools.

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