Skip to main content
Glama
Archicad-MCP

Archicad-MCP

by alesdev88

Modify elements

modify_elements
Destructive

Change existing Archicad elements such as layer, story, geometry and type-specific fields, previewing every edit with a dry run by default; pass dry_run=false to commit and review per-element results.

Instructions

Change existing elements. DRY-RUN BY DEFAULT: returns per element the current and new value of every field, plus skipped elements with the reason and warnings; pass dry_run=false to commit. Each change is {"guid", ...fields}. Any element: story (index, ground floor 0, or a story name; the element keeps its height above the story and moves with it unless keep_elevation=true), layer (name), draw_order (1 to 14, 0 = the type's default), id (the Element ID; Tapir 1.7.3 and newer, otherwise set_element_data General_ElementID). Walls, beams, slabs, columns, windows, doors, morphs, multi-plane roofs, meshes, objects, lamps, texts and labels also take the fields of Tapir's Modify command by its own names (describe_api_command ModifyWalls lists them), e.g. height, thickness, sillHeight, lightIsOn. On a Tapir newer than 1.8.0 so do stairs (ModifyStairs), railings (ModifyRailings), sections and elevations (ModifySections) and detail and worksheet markers (ModifyDetailMarkers); on those last two the reference ID shown in the marker is reference_id, as id stays the Element ID. On Tapir 2.0.1 and newer so do hatches (ModifyHatches), polylines (ModifyPolylines), angle and radial dimensions (ModifyAngleDimensions, ModifyRadialDimensions from 2.0.2; settings only, never the measured lines or arc), pictures (ModifyPictures) and curtain wall panels (ModifyCurtainWallPanels: classIndex only, the panel class, 1 or more; a panel takes its curtain wall's editability; live on Archicad 29 build 5101 with Tapir 2.0.2 Archicad applied no class change, which comes back under failed). A panel or a picture takes no story, layer, draw_order or id. Archicad cannot change a picture in place: a picture the call changes is replaced by a new one with a new GUID, losing its labels, dimensions, properties and classifications, so a commit replaces pictures only with replace_pictures=true (without it they are skipped and the rest is sent); a call that would change nothing on a picture is skipped either way, and 'replaced' lists each replaced picture's new GUID. Attribute fields (buildingMaterialId, compositeId, profileId, surfaceId, lineTypeId, sectionFillId, ...) take a name. Lengths in metres, angles in radians, text sizes in mm. Partial coordinates, dimensions and visibility are completed from the current values. Elements Archicad would refuse (another view's, hidden or locked layer, not reserved in Teamwork, inside a hotlinked module, locked) are skipped with the reason, never unlocked. A placed object, lamp, door or window of a part learned with learn_library_part may take placement, as create_elements does (its items=[] shows the placement_schema), in place of the fields it works out: an object or lamp keeps its story and elevation (center takes x and y only), a door or window its wall and centerOffset; leaves are written after the commit, and 'placed_not_set' names an element whose leaves were not set. A placement that cannot be worked out makes the whole call an error naming the change. After a placement, look (capture_window) and correct with this tool before reporting done; create_elements has the rules for reading a sketch. A commit reads the elements back: 'modified' counts what landed, 'failed' groups Archicad's refusals, 'not_applied' lists fields Archicad answered success for but did not change.

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": {
      "changes": "<changes>"
    },
    "name": "modify_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNo
changesYes
dry_runNo
replace_picturesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • addedInput schema / properties / replace_pictures
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
  2. Addedv0.10.0

TDQS

A4.5/5.0
Behavior5/5

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

Far exceeds the annotations (readOnlyHint=false, destructiveHint=true): it discloses that picture changes destroy labels, dimensions, properties and classifications and yield a new GUID, that locked/hidden/Teamwork/hotlink elements are skipped rather than unlocked, that version gates decide which element types are editable, and that a commit re-reads to report modified/failed/not_applied. This is exactly the destructive-mutation context an agent needs. It is consistent with destructiveHint=true.

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 dry-run default is correctly front-loaded, and most content is load-bearing for a tool this complex. However it is delivered as an unbroken run-on paragraph mixing change format, type/version matrices, attribute units and return-value semantics, and the long Tapir-version enumeration is dense enough to slow scanning.

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 high-complexity mutation tool with an opaque, free-form changes payload, the description covers the change format, units (metres, radians, mm), partial-field completion, skip reasons, placement interaction, and commit reporting. Return values are additionally spelled out despite an output schema existing, so nothing an agent needs to call it safely is missing.

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 0%, so the description must carry the load and largely does: it defines the changes array shape ({"guid", ...fields}), the dry_run=false commit switch, and replace_pictures semantics. The port parameter is never explained, and the per-type field vocabulary is delegated to describe_api_command rather than enumerated, leaving a gap.

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?

"Change existing elements" names a concrete verb and resource, and the body immediately distinguishes this from neighbors: it points at describe_api_command for field lists, at create_elements for placement rules, and at set_element_data General_ElementID as the pre-1.7.3 fallback for the id field. An agent can tell what this tool is for versus move_elements or set_element_data without opening another schema.

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?

It gives explicit operating guidance: dry-run is the default, pass dry_run=false to commit, and pictures are only committed with replace_pictures=true (otherwise skipped while the rest is sent). It also routes the agent to capture_window after a placement and to describe_api_command ModifyWalls for available fields. It never states when to prefer this tool over move_elements or set_element_data, so no explicit exclusions/alternatives for the core edit action.

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