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

Apply Page Setup

page_setup_apply

Set a paper-space layout's plot configuration in one call: paper size, scale, orientation, device, and plot style, validated before anything is written.

Instructions

AutoCAD's PAGESETUP as one call, on both engines.

Paper sizes are ISO 216 / ANSI Y14.1; the media is written in AutoCAD's own spelling (ISO_A3_(420.00_x_297.00_MM)). changed lists only the values that moved — re-applying the same setup reports {}. An unknown ctb is written and reported plot_style_known: false (a missing ctb only matters at plot time). Viewports on the sheet are never touched.

Refused before anything is written: an unknown paper, orientation, scale or plot_area, an empty device or plot_style, margins that leave no printable area, Model, an unknown layout. On the live engine margins_mm is refused (the .pc3 owns them) and a media the device does not offer is refused with the device's names for the same paper.

The proof is the PDF: batch_plot reads each sheet's /MediaBox back.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paperYesISO_A0…ISO_A4 or ANSI_A…ANSI_E (short forms A3, ansi_b accepted).
scaleNofit | 1:1 | 1:2 | 1:5 | 1:10 | 1:20 | 1:50 | 1:100 | 2:1 | 5:1 | 10:1fit
centerNoCentre the plot on the paper.
deviceNoPlotter configuration (.pc3) or printer name.DWG To PDF.pc3
layoutYesPaper-space layout to set up (never 'Model').
plot_areaNolayout | extentslayout
margins_mmNo[top, bottom, left, right] in mm. Headless only: AutoCAD takes margins from the .pc3.
plot_styleNoPlot style table, e.g. monochrome.ctb, acad.ctb, Grayscale.ctb (plot_style_list).monochrome.ctb
orientationNolandscape | portraitlandscape

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 load and does so richly: idempotency (`changed` lists only moved values, re-apply reports `{}`), unknown-ctb behavior (written, reported plot_style_known:false), viewports never touched, and the headless-vs-live margins_mm difference. This is exactly the beyond-annotation context an agent needs.

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?

Dense but front-loaded: the core action leads, followed by semantics, refusals, and the verification note. Every sentence carries information, though the technical density edges toward heavy for a first read.

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?

An output schema exists so return format needn't be restated, yet the description still explains the meaningful `changed` and plot_style_known fields. Combined with the refusal contract and engine caveats, an agent has everything required to call this correctly.

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% (baseline 3), and the description adds real value: the paper spelling convention (`ISO_A3_(420.00_x_297.00_MM)`), that margins_mm is refused on the live engine, and the plot_style unknown-ctb semantics. It stops just short of 5 because most enum-like value sets already live in the schema.

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 ('AutoCAD's PAGESETUP as one call') and scope ('on both engines'), naming the engines. It clearly distinguishes itself from page_setup_list and batch_plot, which it references for verification.

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 concrete when-not guidance through a detailed refusal list (unknown paper, orientation, scale, plot_area, empty device/plot_style, no printable area, 'Model', unknown layout) and engine-specific refusals. Lacks an explicit pointer to page_setup_list for discovering existing setups, so slightly short of 5.

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