Skip to main content
Glama
Archicad-MCP

Archicad-MCP

by alesdev88

Find elements by criteria

find_elements
Read-only

Find Archicad elements matching grouped property criteria and element-type filters; returns GUIDs, counts, and coverage so you can verify model queries before acting.

Instructions

Find elements matching criteria groups. Groups combine with OR; inside a group the comparisons combine with logical_operator 'and' (default) or 'or'. Each group may restrict element types (is / is_not) and lists comparisons of {property, operator, value}; the schema enumerates the element types and the 22 operators, and each field documents its values and units. Call search_definitions to find a property's exact address. An element with no usable value matches no binary operator. Returns GUIDs, counts, how many elements had properties read, and 'coverage' ('whole-plan' with Tapir, 'model-elements-only' without: then 2D elements are invisible and 0 is not proof of absence). 'not_read' lists the properties nothing could read on some elements, with the reason (the official API refuses them, and Tapir 2.0.0 or newer was not there or did not answer); such a pair matches no operator, so check it before trusting a count. Property comparisons read values in the server (no API filters by property); a read spanning more than the element ceiling is refused, so narrow with element_types, story or classification first.

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": {
      "groups": "<groups>"
    },
    "name": "find_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNo
groupsYes
selection_onlyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • changedInput schema / properties / groups / items / properties / comparisons / items / properties / value / description
      Previous value: -"The value for a binary operator. Numeric values in SI base units: m, m2, m3, radian (3000 mm -> 3). Enum values are their display text. Story values are integers. Classification values are item IDs ('Wall') or GUIDs."New value: +"The value for a binary operator. Numeric values in SI base units: m, m2, m3, radian (3000 mm -> 3). An option compares as its non-localized value where Archicad has one, else its display text. Story values are integers. Classification values are item IDs ('Wall') or GUIDs."
  2. Changed1 schema field changedv0.7.1
    • changedInput schema / properties / groups / items / properties / element_types / description
      Previous value: -"Archicad element type names to restrict this group to. Omit for every type; 'all' says so explicitly."New value: +"Archicad element type names to restrict this group to. Omit for every type; 'all' says so explicitly. 'Unknown' is an element that exists but has no type in either API, such as a native MEP route, segment or node; it is matched over the whole plan, so it is slower."
  3. Addedv0.5.1

TDQS

A4.3/5.0
Behavior5/5

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

Well beyond the readOnly/destructive annotations, it discloses that property filtering happens server-side with no API-side filtering, that reads exceeding the element ceiling are refused, that without Tapir coverage is 'model-elements-only' so a zero is not proof of absence, and why 'not_read' pairs match no operator. These are exactly the caveats an agent needs before trusting a result.

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?

Front-loaded with the purpose and mostly information-dense, with no filler sentences. It is a single long paragraph with heavy parentheticals (coverage, not_read, ceiling), which makes it harder to scan than a short bulleted breakdown would be.

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 tool with three parameters, nested group structure and an output schema, the description covers the semantics an agent cannot get from the schema alone: group composition logic, server-side read cost, coverage limitations, and the not_read trust caveat. Nothing material for correct invocation appears 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?

Adds real meaning over the schema: groups join with OR, comparisons within a group join with 'and' by default or 'or', and element_types/element_types_operator restrict per group. It explicitly delegates value/unit and operator enumeration details to the schema ('the schema enumerates the element types and the 22 operators'), which is honest but leaves operator-specific value formats documented only in the schema.

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 opens with a specific verb and resource, 'Find elements matching criteria groups', and immediately defines what a criteria group is (OR-combined groups, comparisons combined by logical_operator). The purpose is unambiguous, though it never explicitly contrasts itself with sibling query tools such as get_element_data or find_collisions.

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 concrete when-to guidance: call search_definitions to resolve a property's exact address, check not_read before trusting a count, and narrow with element_types/story/classification before property reads hit the element ceiling. It stops short of stating when not to use this tool in favour of a sibling.

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