Skip to main content
Glama

MIDAS CIVIL NX tools (MIDAS IT Europe)

Auto Structure Groups

auto_structure_groups

Use to group elements automatically by section, material or both. For groups by position or by construction-stage segment use stage_groups; for one group of ids you already know use civil_write_tables (GRUP). Creates one structure group per section, per material, or per section + material pair, with the Auto Structure Groups plugin's own engine: it reads every element's section and material, names each group from the prefix and the section/material names (cleaned and cut to 40 characters, as in the plugin; elements with no section/material go to UNASSIGNED), largest group first. Optional: include each group's nodes, skip groups with fewer than minElements elements, or write only the groups named in groups. A name that already exists is skipped unless existing: 'overwrite' — and then this run's members are ADDED to that group (CIVIL NX merges a write into an existing group; it never removes members). Previews unless apply: true with confirmPlanHash; the plugin's writer re-reads db/GRUP, writes in batches and checks the read-back. auto_structure_groups_undo reverses 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": "auto_structure_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoWhat one group holds: one section, one section + material pair, or one material.section
applyNoWrite to CIVIL NX. Only after the user approved the preview.
groupsNoWrite only these proposed groups (names from the preview); default all.
prefixNoPut in front of every group name.SG_
existingNoA proposed name that already exists: leave that group alone, or add this run's members to it.skip
minElementsNoSkip groups with fewer elements than this (2 or more turns the filter on).
includeNodesNoAlso put each group's element nodes in the group.
confirmPlanHashNoplanHash from the approved preview; the write is refused if the plan differs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=false, idempotent=false; the description supplies the substance behind that: one group per section/material/pair, name construction with prefix plus cleaned 40-character truncation, an UNASSIGNED bucket, largest-group-first ordering, and skip-vs-overwrite semantics where an overwrite ADDS members and never removes them. It also discloses the preview/apply gate, batch writes with read-back verification, and points to auto_structure_groups_undo for reversal — all consistent with destructive=false and idempotent=false.

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?

Purpose and sibling routing are front-loaded in the first two sentences, and nearly every clause carries operational information (naming, ordering, overwrite semantics, preview gate). It is dense and somewhat long, with a few packed run-on sentences, but little is genuinely redundant.

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?

With no output schema, the description still covers what an agent needs: grouping granularity, naming and ordering rules, empty-value handling, the minElements and groups filters, the safety gate for writing, and the undo path. Edge cases that typically cause misfires (pre-existing names, partial writes) are addressed explicitly.

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 already 100%, so the baseline is 3; the description earns extra credit by adding meaning the schema does not carry — the 40-character truncation and cleaning applied to prefix/section/material names, the UNASSIGNED fallback, and the crucial clarification that existing: 'overwrite' merges this run's members into the existing group rather than replacing it. It does not add anything for includeNodes or groups beyond what the schema already states.

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 (group elements automatically) and immediately bounds the mode axis: by section, material, or both. It explicitly contrasts with two siblings — stage_groups for position/stage-segment grouping and civil_write_tables (GRUP) for a single known id list — so an agent can pick this tool without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use (auto grouping by section/material) and explicit when-not-to-use with the alternative named for each case (stage_groups, civil_write_tables). It also states the operational prerequisite: preview first, then apply: true with confirmPlanHash.

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