Skip to main content
Glama
archicad-tapir-mcp

archicad-tapir-mcp

by joacos

set_element_ids

Update Archicad element IDs with explicit values, unique suffixes for duplicates, or prefix-based numbering; preview changes with dry run and revert with undo.

Instructions

Changes element IDs: explicit values, unique suffixes for repeated IDs (fixDuplicates) or a prefix + number sequence (numbering). Revert with undo.

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": "set_element_ids"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoExplicit new IDs.
dryRunNoOnly return what would change, without touching the model.
elementsNoExplicit elements, as returned by other tools: [{"elementId": {"guid": "..."}}].
numberingNoRenumber the elements in scope as prefix + zero-padded number, e.g. FU-001.
elementTypeNoOnly elements of this type, e.g. 'Wall', 'Slab', 'Zone', 'Object', 'Window'.
selectedOnlyNoOnly the elements selected in Archicad.
fixDuplicatesNoGive a unique ID to every repeated one in scope: the first keeps it, the others get a -2, -3... suffix. Empty IDs are left alone.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare this is a non-read-only but non-destructive in-world operation, so the bar is lower. The description adds real context beyond them by disclosing that changes are reversible through undo and that fixDuplicates preserves the first occurrence while suffixing the rest. It stops short of describing validation failures or collision handling on explicit ids.

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?

A single dense sentence front-loads the verb and resource, then lists modes parenthetically, with the revert note appended last. Nothing is redundant, though the compression leaves the mode-selection logic for the reader to unpack.

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

Completeness4/5

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

For a seven-parameter, nested-object mutation with full schema coverage and no output schema, the definition covers intent, modes, and reversibility adequately. The remaining gap is what the call produces, particularly whether dryRun or a normal run returns a change report, which the description never mentions.

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

Parameters3/5

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

Schema description coverage is 100%, so every one of the seven parameters is already documented in the schema, including the numbering prefix/digits defaults and the dryRun preview. The description restates the fixDuplicates and numbering concepts but contributes no additional syntax, precedence, or interaction rules, so the baseline of 3 applies.

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 description names a specific verb and resource ('Changes element IDs') and enumerates the three operating modes: explicit ids, fixDuplicates suffixing, and numbering with a prefix. An agent can tell exactly what this tool manipulates, though it never contrasts itself with the sibling Set* tools that also mutate element attributes.

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?

Usage is implied by the mode names rather than stated as guidance: the agent must infer that ids/fixDuplicates/numbering are mutually exclusive strategies and that scope comes from elementType/selectedOnly/elements. The only explicit routing is 'Revert with undo', which usefully points at the sibling tool for rollback but does not say when to prefer one mode over another.

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