Skip to main content
Glama

Change class

change_class
Idempotent

Changes the IFC class (IfcSlab to IfcRoof); GlobalId, geometry, properties and relations stay. New revision, effect report (n_changed, rejected, cloned, carried). A call that succeeds is not a job that's done. Target: guid, guids or a set from find_elements/get_selection, never a filter. Beyond the named: PLAN_REQUIRED, run its plan_id with expect_beyond. Trailing optional attributes the new class adds are added empty, empty ones it lacks are dropped (IfcColumn to IfcPile, predefined_type BORED). Refused per element where the target class has other attributes or does not know the PredefinedType; into or out of a feature element (opening, earthworks cut) always: insert_in_host. Deleting and creating is no substitute - properties and relations would be lost. A type object alone takes a type class (IfcWallType to IfcSlabType) only while nothing is typed by it; else name it with all its occurrences in one call, class being theirs (IfcSlab): the type takes the type class the schema pairs with it.

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

Input Schema

NameRequiredDescriptionDefault
setNoA set id from find_elements or get_selection: writes exactly the elements seen there, nothing that matches later. An element changed since reading is rejected alone; the others are written
guidNoOne element (GlobalId)
noteNoYour note, stored with the new revision
classNoThe new IFC class
guidsNoThese elements (GlobalIds)
dry_runNoPreview: the planned effect and a plan_id, nothing written
plan_idNoExecute exactly the plan a dry_run returned, all or nothing; the plan holds target and fields. Plans that clone the same shared object (type, material) run one after the other: plan the second after the first ran, else PLAN_CHANGED
request_idNoYour id for this call: a repeat answers the first result and writes nothing
expect_countNoWith set: how many elements the set holds - guards against a mixed-up set id
expect_beyondNoWith plan_id: how many elements the plan reaches beyond those named (n_beyond of PLAN_REQUIRED or the dry_run)
predefined_typeNoNew PredefinedType, checked against the class enumeration

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare the mutation profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false); the description adds substantial context beyond that: a new revision is written, an effect report carries n_changed/rejected/cloned/carried, and partial failure is possible (rejections are per element). It further discloses the exact refusal conditions (target class has other attributes, unknown PredefinedType, feature elements via insert_in_host) and the attribute carry-over rule, which is precisely the behavioural detail an agent needs before mutating a model.

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?

Purpose and preservation semantics are correctly front-loaded, and nearly every clause carries real information. But the prose is telegraphic and under-paragraphed — 'A call that succeeds is not a job that's done' and the trailing type-object sentences ('class being theirs', 'the type takes the type class the schema pairs with it') require re-reading and slow an agent trying to parse the call sequence.

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 an 11-parameter mutation tool with no output schema, the description covers the preconditions, the plan gate, the failure model and the attribute migration rules, which is most of what an agent needs. The gaps are the meaning of the individual effect-report counters (n_changed, rejected, cloned, carried are named but not defined) and the absence of an explicit statement of which parameter combinations are valid versus merely optional.

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 description coverage is 100%, so the baseline is 3; the description earns more by explaining cross-parameter relationships the schema documents only in isolation — set paired with expect_count, plan_id paired with expect_beyond, and the dry_run-to-plan_id-into-expect_beyond chain. It also constrains target selection to guid/guids/set and rules out filtering. It stops short of explaining request_id/note/dry_run interplay, keeping it below a 5.

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?

The opening sentence names a specific verb and resource with a concrete example ('Changes the IFC class (IfcSlab to IfcRoof)') and immediately states what is preserved (GlobalId, geometry, properties, relations). That preservation clause also implicitly separates it from delete_elements + create_elements, so an agent can distinguish it from siblings without opening the 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 targeting guidance ('Target: guid, guids or a set from find_elements/get_selection, never a filter') and an explicit exclusion ('Deleting and creating is no substitute - properties and relations would be lost'). It also mandates a PLAN_REQUIRED dry-run flow before going beyond the named elements. What is missing is any pointer to the sibling that should be used instead for adjacent jobs (e.g. set_properties for attribute-only edits), so the routing is one-sided.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources