Skip to main content
Glama
Archicad-MCP

Archicad-MCP

by alesdev88

Learn a library part

learn_library_part
Destructive

Measures a library part's footprint and GDL parameters from temporary samples, enabling later placement without samples for objects, lamps, doors, or windows.

Instructions

Learn a library part once, before placing it by placement; a learned part is then placed with no samples. Places samples of the part named name (kind: object, lamp, door or window) in a row just past the right edge of the model, on the story the floor plan shows, measures their footprints, shows them in one floor plan image, deletes every sample again in the same call and stores the measurement. The reply lists 'samples' left to right as the image shows them, the first sample's GDL parameters, warnings, and 'next', the fields still to give record_library_part. variants: optional sets of GDL parameter values (parameter name to value), each placed as one more sample, such as a leaf or one of a window's sashes opened. On a Tapir newer than 1.8.0 samples are placed at the part's own size and 1.5 times it, and the record keeps its own size. On Tapir 1.8.0 and older a door or window placed by part name, as its samples are, has GDL parameters that can be neither read nor written, and the Door or Window tool keeps that fault for later openings, so a door's or window's samples show no parameters and a placement's leaves end in placed_not_set; the same part placed from a favourite has them. When a window's capture shows no opening lines, the view settings hide them: ask the user to show them, then learn the window again, before recording hinge and swing. A part whose plan size does not follow its own A and B gets no footprint (the reply's note says so) and is placed by coordinates. Lengths are metres. The floor plan must be the active window, with its view not rotated. It zooms the plan to the samples and leaves it zoomed, since Tapir cannot set the zoom back; on Tapir 1.8.0 and older a door or window learned may leave the Door or Window tool holding the part. Needs Tapir 1.7.2.

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": {
      "name": "<name>",
      "kind": "<kind>"
    },
    "name": "learn_library_part"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
nameYes
portNo
variantsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.11.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes far beyond annotations, disclosing that samples are placed past the right edge, shown in an image, measured, and deleted in the same call, and that the measurement is stored. It also covers version-specific GDL parameter behavior, window opening-line capture issues, footprint limitations, required active floor plan state, persistent zoom changes, and the Tapir 1.7.2 minimum.

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 purpose is front-loaded, but the description is a dense block mixing core behavior, return fields, version caveats, and edge cases. Most content is relevant, yet the structure makes it harder to parse than necessary.

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 complex, stateful tool with no output schema and only generic annotations, the description explains return content, side effects, prerequisites, version compatibility, and failure modes. The only notable omission is port parameter meaning, already reflected in parameter semantics.

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?

With zero schema description coverage, the description compensates for name, kind, and variants by naming allowed kind values and explaining that variants are GDL parameter value maps placed as extra samples. However, the port parameter is never mentioned, leaving one of four parameters with no semantics.

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 action and resource: it learns a library part by placing samples, measuring footprints, storing the measurement, and deleting samples in one call. It also distinguishes the workflow from sibling record_library_part by explaining that 'next' lists fields still to give that tool.

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 clear when-to-use context: learn the part once before placing it by placement, after which placement needs no samples. It does not name other alternatives such as preview_library_parts or list_library_part_records, but the primary sequencing with record_library_part is explicit.

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