Skip to main content
Glama
Tetragon
by wckdboy

apply_building_changes

Atomically upsert or remove whole storey, element and drawing records by ID in one batch. Any unknown field, invalid host or missing opening removal rejects the entire change, keeping revisions restorable.

Instructions

Atomically upsert whole storey/element/drawing records by ID. Unknown fields and invalid hosts fail the entire batch. Wall coordinates are centre lines; opening offset runs from wall start, sill from wall base; all elevations are storey-relative except drawing cut planes, which are absolute. Deleting a host requires removing its openings in the same batch. Historical revisions remain restorable.

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": {
      "project_id": "<project_id>",
      "expected_revision": "<expected_revision>"
    },
    "name": "apply_building_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
roomsNo
storeysNo
drawingsNo
elementsNo
project_idYes
remove_elementsNo
expected_revisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses all-or-nothing batch failure, rejection of unknown fields and invalid hosts, the host/opening deletion dependency, and restorable historical revisions. It still omits the concurrency semantics of expected_revision and does not explicitly warn that removals are destructive.

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

Conciseness5/5

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

Five dense sentences, front-loaded with the atomic upsert purpose, and every sentence adds a concrete constraint or semantic rule. There is no filler.

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

Completeness3/5

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

For a large, high-risk mutation schema with no annotations and no field descriptions, the description covers important atomicity and geometry rules. It is still incomplete for correct invocation because the required expected_revision and several batch parameters remain unexplained.

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 8 parameters, so the description must compensate heavily. It explains geometry semantics for element fields and deletion coupling, but it never explains the required expected_revision, the role of notes, or the expected remove_elements format.

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?

States a specific action and resource: atomically upsert whole storey/element/drawing records by ID. It is clearly distinguishable from read-oriented siblings, but it does not name alternatives to sharpen the distinction.

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 description implies this is the tool for atomic batch upserts and removals, and it gives one important usage constraint about deleting hosts with openings. It does not explicitly say when to use this versus apply_drawing_annotations or the add_* helper tools, nor does it state when not to use it.

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