Skip to main content
Glama

Change dimensions and tags

edit_annotations
Destructive

Update floor plan annotations: anchor dimensions to objects, renumber reference tags, edit details, and regenerate legend counts for accurate plans.

Instructions

Change the plan annotations. anchor=true ties every straight dimension to what its ends touch now, and from then on they are measured again on every change instead of drifting — run it while the numbers are still right; one with an end already off its face is not tied and comes back in left [[id, written, measured, near]], to be fixed first; one whose anchor died with a deleted piece is tied again to what it touches now, or else released (no anchor) instead of staying stale. Set any of dims (engineering dimension chains; auto_dimensions in the project JSON), refs (room reference schedule with tags; references — a tag, once given, stays with its piece: new pieces take the next free number and removed ones leave a gap, so a print and the plan a week later agree; renumber=true numbers them again in reading order), details (brand/model/link in refs; reference_details), legend (symbol legend with counts): a switch answers with the modes, changed, and what it shows — chains [[from,to,cm]] for dims, symbols {discipline:[[name,count]]} for legend — not the schedule; refs=true returns {dims,refs,details,legend,rooms:[[room,[[tag,name,w,d,h,brand?,model?,url?]]]]}. bake=true turns the automatic chains into editable dimensions (ids returned). The annotations tool reads them (stale, q, the schedule).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bakeNoConvert the automatic dimension chains into editable dimensions
dimsNoShow engineering dimension chains (`auto_dimensions` in the project JSON)
refsNoShow the room reference schedule and tags (`references` in the JSON)
anchorNoTie every straight dimension to what its ends touch right now, so from here on they follow the drawing. Run it while the numbers are right
legendNoLegend of electrical/plumbing symbols with counts
detailsNoInclude brand, model and link in references (`reference_details`)
renumberNoNumber the schedule again in reading order, closing the gaps pieces left behind. Numbers are otherwise kept by each piece for good

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
vNoPlan version written to, when there are several
okNoAlways true
idsNoIds created or touched
revNoPlan revision
dimsNoDimensions shown
leftNoanchor=true: [id, written, measured, near id] left as they were
refsNoReference tags shown
textNoThe reply as written
roomsNoThe schedule: [room, [[tag, name, w, d, h, …]]]
chainsNodims=true: [[x,y], [x,y], cm]
legendNoLegend shown
changedNoSwitches that changed
detailsNoDetails shown
symbolsNolegend=true: {electrical?, plumbing?} → [name, count]
anchoredNoanchor=true: labels now tied to what they measure
releasedNoanchor=true: labels let go

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Despite destructiveHint=true being present, the description goes far beyond it: it discloses that anchor ties dimensions to current geometry and re-measures them on every change, that tags persist with a piece and leave gaps when removed, that dead anchors are re-tied or released, and that bake turns automatic chains into editable dimensions. This gives the agent a strong model of side effects and persistence.

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

Conciseness2/5

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

The description is a single dense, run-on block with nested clauses and parentheticals that are very hard to scan (for example, the anchor sentence and the long refs/legend sentence). While the content is relevant, it needs bulleted modes and clearer separation to be efficiently parseable by an agent.

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 multi-mode destructive tool with seven switches, the description covers the essentials: prerequisites for anchor, behavior on stale or deleted anchors, return shapes for modes, renumbering semantics, and the relationship to the annotations read tool. The output schema exists, so the detailed return-value prose is bonus rather than a required gap.

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

Parameters5/5

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

The schema already covers all seven boolean parameters, but the description adds real semantics: what each switch returns (e.g. chains [[from,to,cm]] for dims, symbols {discipline:[[name,count]]} for legend), what refs=true returns, and what renumber/bake do to tagging and dimension state. This is far beyond the baseline for fully covered schemas.

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 opening 'Change the plan annotations' names a specific verb and resource, and the closing sentence 'The annotations tool reads them' explicitly separates this mutating tool from its read-only sibling. The different modes (anchor, dims, refs, legend, bake) all fall under the single purpose of changing plan annotations, so an agent can tell what the tool is for.

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?

It gives mode-level conditions, such as 'run it while the numbers are still right' for anchor and 'renumber=true numbers them again in reading order', and points to the annotations tool as the reader. But it never states directly when to choose edit_annotations over the sibling edit_* tools or when not to use it, leaving much of the selection inference to the agent.

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