Skip to main content
Glama

MIDAS CIVIL NX tools (MIDAS IT Europe)

Write any model table (build from scratch)

civil_write_tables
Destructive

Use for a model change no other tool makes (e.g. building from scratch). Prefer civil_loads_supports for loads and supports, civil_combinations_quick for combinations, and a plugin tool where one fits. Creates, changes or deletes rows in any CIVIL NX database table through the MIDAS API — nodes, elements, materials, sections, thicknesses, supports, links, load cases, loads, groups, stages, combinations, anything the API manual lists — so a model can be built from scratch or changed where no plugin tool does it. Look up the table and its fields first with midas_docs_search / midas_docs_read (e.g. "db/ELEM"), and read the current rows with civil_read_table. writes is a list of steps run in order: { table, op: create (POST — new keys only, refused if a key exists) | upsert (PUT — creates or changes; GRUP lists and CNLD/BMLD/PRES/RIGD items MERGE, they are never removed by a PUT) | delete (DESTRUCTIVE — needs allowDestructive; a node takes its elements, an element its loads, a load case its loads), rows: { "": {fields} } | ids: [keys] }. The preview simulates every step over the current model: what each creates, changes (which fields) and deletes; it blocks keys that already exist on create, elements that refer to nodes, materials, sections or thicknesses that do not exist (CIVIL NX accepts a missing section silently), deletes and UNIT / MVCD writes without allowDestructive. Then apply: true with confirmPlanHash writes the steps (stopping at the first refusal), reads every touched row back and reports anything not stored as sent. civil_write_tables_undo puts every touched row back. ON THIS SERVER: called without apply it previews and applies in one call; preview: true only previews.

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": {
      "writes": "<writes>"
    },
    "name": "civil_write_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
applyNoWrite to CIVIL NX. Only after the user approved the preview.
writesYes
previewNoOnly preview; write nothing.
confirmPlanHashNoplanHash from the approved preview; refused if the model or the steps changed.
allowDestructiveNoDESTRUCTIVE: allow delete steps and writes to UNIT / MVCD. Only after the user agreed to what the preview says they do.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / preview
      Added value: +{
      +  "description": "Only preview; write nothing.",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the destructiveHint/readOnlyHint annotations it discloses substantial behavior: create is refused if a key exists, upsert MERGEs GRUP lists and CNLD/BMLD/PRES/RIGD items rather than removing them, and delete cascades (node takes its elements, element its loads, load case its loads). It further explains preview simulation, the blocking checks, confirmPlanHash validation, stop-at-first-refusal, post-write readback, and the undo sibling.

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-loads the routing rule and alternatives before the mechanics, and the dense op/preview explanation is worth its length. There is minor redundancy — the "built from scratch or changed where no plugin tool does it" clause repeats the opening sentence — but no filler paragraphs.

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 five-parameter, high-blast-radius write tool with no output schema, the definition covers everything an agent needs: prerequisites, step ordering, merge and cascade semantics, preview/apply gating, refusal behavior, post-write verification, and recovery via civil_write_tables_undo. The server-specific note that apply defaults to a combined preview-and-apply is an important clarification.

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 80%, so the schema already carries much of the burden, but the description adds real meaning: writes is an ordered list of steps, each op's semantics (POST vs PUT vs DESTRUCTIVE delete), and that allowDestructive is required for delete and UNIT/MVCD writes. confirmPlanHash's invalidation condition (model or steps changed) is also explained, though per-field row content is still deferred to the API manual.

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 verb and resource — creates/changes/deletes rows in any CIVIL NX database table through the MIDAS API — and enumerates the table families it covers. It explicitly distinguishes itself from siblings (civil_loads_supports, civil_combinations_quick, plugin tools), so an agent can route correctly without opening another 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?

Gives an explicit when-to-use rule ("a model change no other tool makes") plus named preferred alternatives for loads/supports and combinations. It also prescribes the prerequisite workflow: look up the table with midas_docs_search/midas_docs_read (e.g. "db/ELEM") and read current rows with civil_read_table before writing.

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