Skip to main content
Glama

MIDAS CIVIL NX tools (MIDAS IT Europe)

Section Designer — write a section to CIVIL NX

section_write
Destructive

Use to write a designed section into the model, after section_preview. Writes a section into the open CIVIL NX model exactly as Section Designer's Write button does: VALUE/GEN, PSC/VALU or COMPOSITE-GEN with its computed properties (CIVIL keeps them as sent), in the model's units read at the time of writing, then reads it back and compares every value sent. id defaults to the model's next free section id. Refuses unconverged results. If the id is taken it writes nothing and says by what (and how many elements use it); replacing needs replaceExisting: true — DESTRUCTIVE, only with the user's agreement. Previews unless apply: true with confirmPlanHash. Before applying, show the user the drawing (section_preview) and the properties and get their go-ahead. section_write_undo reverses it. Same section input as section_preview. 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": {
      "section": "<section>"
    },
    "name": "section_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoSection id; default = next free id in the model.
applyNoWrite to CIVIL NX. Only after the user approved the preview.
previewNoOnly preview; write nothing.
sectionYesThe section, read off the sketch. Axes: y across (positive right), z up, as seen in CIVIL's section dialog; put the origin anywhere convenient (e.g. bottom-left corner or soffit centre) — CIVIL's frame is applied on write.
confirmPlanHashNoplanHash from the approved preview; the write is refused if the plan differs.
replaceExistingNoDESTRUCTIVE: overwrite the section already at id (elements using it change stiffness). Only with the user's agreement.

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. Changed3 schema fields changed
    • changedInput schema / properties / section / properties / parts / items / properties / template / description
      Previous value: -"A Section Designer template instead of regions; lengths in the section's units. Soffit on z = 0 and centreline on y = 0, moved by at. i_girder: H depth, tw web, Bt/tft top flange width/thickness, Bb/tfb bottom flange, htw/hth top haunch width (beyond the web face)/height, hbw/hbh bottom haunch. box_girder: cells 1–3, B deck width, Bw outer width across the webs at the top (under the cantilever roots), Bs soffit width, H depth, ts top slab, tb bottom slab, tw web thickness (horizontal), tc/tr cantilever thickness at tip/root, htw/hth and hbw/hbh cell haunches (top and bottom corners). Haunches default to 0. uk_precast: a standard UK/Irish prestressed beam by id (beam: Y, YE, SY, SYE, TY, TYE, MY, MYE, M, UMB, T, TB, SD, U, SU, W families, e.g. \"TY6\", \"Y4\", \"M3\", \"U8\") as drawn in a manufacturer's manual (maker: banagher | fpm | shay | pca; default the first that lists it)."New value: +"A Section Designer template instead of regions; lengths in the section's units. Soffit on z = 0 and centreline on y = 0, moved by at. i_girder: H depth, tw web, Bt/tft top flange width/thickness, Bb/tfb bottom flange, htw/hth top haunch width (beyond the web face)/height, hbw/hbh bottom haunch. box_girder: cells 1–3, B deck width, Bw outer width across the webs at the top (under the cantilever roots), Bs soffit width, H depth, ts top slab, tb bottom slab, tw web thickness (horizontal), tc/tr cantilever thickness at tip/root, htw/hth and hbw/hbh cell haunches (top and bottom corners). Haunches default to 0. uk_precast: a standard UK/Irish prestressed beam by id (beam: Y, YE, SY, SYE, TY, TYE, MY, MYE, M, UMB, T, TB, SD, U, SU, W families, e.g. \"TY6\", \"Y4\", \"M3\", \"U8\") as drawn in a manufacturer's manual (maker: banagher | fpm | shay3 | shay | pca, where shay3 is Shay Murtagh's Edition 3 manual and shay its Edition 2; default the first that lists it)."
    • changedInput schema / properties / section / properties / parts / items / properties / template / properties / maker / description
      Previous value: -"uk_precast: Banagher Precast, FP McCann, Shay Murtagh or the 1984 PCA standard."New value: +"uk_precast: Banagher Precast, FP McCann, Shay Murtagh Edition 3 (shay3) or Edition 2 (shay), or the 1984 PCA standard."
    • changedInput schema / properties / section / properties / parts / items / properties / template / properties / maker / enum
      Previous value: -[
      -  "banagher",
      -  "fpm",
      -  "shay",
      -  "pca"
      -]New value: +[
      +  "banagher",
      +  "fpm",
      +  "shay3",
      +  "shay",
      +  "pca"
      +]
  3. Changed5 schema fields changed
    • addedInput schema / properties / section / properties / infill
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Beam-and-infill deck (Section Designer's Infill, INF): part 1 is ONE precast beam outline (e.g. template uk_precast TY6); the in-situ concrete round it within its share of the deck, up to the beam top plus topping, becomes part 2, cast after the beam. Side by side (spacing left out) the infill starts on the flanges; wider spacing also fills the gaps between beams down to the soffit. A U beam's own void is never filled. Any further parts (e.g. a deck slab) follow it.",
      +  "properties": {
      +    "material": {
      +      "anyOf": [
      +        {
      +          "description": "A grade: concrete \"C40/50\" (EN 1992 Ecm formula, ν 0.2) or steel \"S355\" (210 GPa, ν 0.3); or a Section Designer library id — \"EN:C30/37\" (EN 1992-1-1 Table 3.1 Ecm), \"EN:S355\", \"EN:B500\", UK assessment (CS 454 family) \"UK:C40\" (cube fcu, BS 5400-4 Table 3 Ec, as CS 455), \"UK:S355\" (BS 5400-3, 205 GPa), \"UK:B500\".",
      +          "type": "string"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "description": "A library grade, optionally long term (concrete at half its short-term E).",
      +          "properties": {
      +            "grade": {
      +              "description": "Library id, e.g. \"UK:C40\", \"EN:C35/45\", \"EN:S355\".",
      +              "type": "string"
      +            },
      +            "longTerm": {
      +              "default": false,
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "grade"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "E": {
      +              "type": "number"
      +            },
      +            "nu": {
      +              "default": 0.2,
      +              "type": "number"
      +            },
      +            "unit": {
      +              "default": "MPa",
      +              "enum": [
      +                "MPa",
      +                "GPa",
      +                "kN/m2"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "E"
      +          ],
      +          "type": "object"
      +        }
      +      ],
      +      "description": "Default: EN:C30/37 for a Eurocode library beam grade, UK:C40 for a UK one, else the beam's material."
      +    },
      +    "name": {
      +      "default": "In-situ infill",
      +      "type": "string"
      +    },
      +    "spacing": {
      +      "description": "Beam centres, in the section's units; at least the beam's width. Left out = side by side.",
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "topping": {
      +      "default": 0,
      +      "description": "Concrete above the beam top, in the section's units.",
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / section / properties / parts / items / properties / template / description
      Previous value: -"A Section Designer template instead of regions; lengths in the section's units. Soffit on z = 0 and centreline on y = 0, moved by at. i_girder: H depth, tw web, Bt/tft top flange width/thickness, Bb/tfb bottom flange, htw/hth top haunch width (beyond the web face)/height, hbw/hbh bottom haunch. box_girder: cells 1–3, B deck width, Bw outer width across the webs at the top (under the cantilever roots), Bs soffit width, H depth, ts top slab, tb bottom slab, tw web thickness (horizontal), tc/tr cantilever thickness at tip/root, htw/hth and hbw/hbh cell haunches (top and bottom corners). Haunches default to 0."New value: +"A Section Designer template instead of regions; lengths in the section's units. Soffit on z = 0 and centreline on y = 0, moved by at. i_girder: H depth, tw web, Bt/tft top flange width/thickness, Bb/tfb bottom flange, htw/hth top haunch width (beyond the web face)/height, hbw/hbh bottom haunch. box_girder: cells 1–3, B deck width, Bw outer width across the webs at the top (under the cantilever roots), Bs soffit width, H depth, ts top slab, tb bottom slab, tw web thickness (horizontal), tc/tr cantilever thickness at tip/root, htw/hth and hbw/hbh cell haunches (top and bottom corners). Haunches default to 0. uk_precast: a standard UK/Irish prestressed beam by id (beam: Y, YE, SY, SYE, TY, TYE, MY, MYE, M, UMB, T, TB, SD, U, SU, W families, e.g. \"TY6\", \"Y4\", \"M3\", \"U8\") as drawn in a manufacturer's manual (maker: banagher | fpm | shay | pca; default the first that lists it)."
    • addedInput schema / properties / section / properties / parts / items / properties / template / properties / beam
      Added value: +{
      +  "description": "uk_precast: beam id, e.g. \"TY6\".",
      +  "type": "string"
      +}
    • changedInput schema / properties / section / properties / parts / items / properties / template / properties / kind / enum
      Previous value: -[
      -  "i_girder",
      -  "box_girder"
      -]New value: +[
      +  "i_girder",
      +  "box_girder",
      +  "uk_precast"
      +]
    • addedInput schema / properties / section / properties / parts / items / properties / template / properties / maker
      Added value: +{
      +  "description": "uk_precast: Banagher Precast, FP McCann, Shay Murtagh or the 1984 PCA standard.",
      +  "enum": [
      +    "banagher",
      +    "fpm",
      +    "shay",
      +    "pca"
      +  ]
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / section / properties / name / maxLength
      Previous value: -80New value: +28
  5. Changed3 schema fields changed
    • removedInput schema / properties / section / properties / parts / items / properties / densityRatio / default
      Removed value: -1
    • addedInput schema / properties / section / properties / parts / items / properties / densityRatio / description
      Added value: +"CIVIL DENS_RATIO: this part's weight relative to part 1's material. Left out on a composite whose parts have grades, it is their unit-weight ratio (25 kN/m³ concrete, 77 kN/m³ steel); otherwise 1."
    • changedInput schema / properties / section / properties / parts / items / properties / material / anyOf
      Previous value: -[
      -  {
      -    "description": "A grade: concrete \"C40/50\" (EN 1992 Ecm, ν 0.2) or steel \"S355\" (210 GPa, ν 0.3).",
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "E": {
      -        "type": "number"
      -      },
      -      "nu": {
      -        "default": 0.2,
      -        "type": "number"
      -      },
      -      "unit": {
      -        "default": "MPa",
      -        "enum": [
      -          "MPa",
      -          "GPa",
      -          "kN/m2"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "E"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "A grade: concrete \"C40/50\" (EN 1992 Ecm formula, ν 0.2) or steel \"S355\" (210 GPa, ν 0.3); or a Section Designer library id — \"EN:C30/37\" (EN 1992-1-1 Table 3.1 Ecm), \"EN:S355\", \"EN:B500\", UK assessment (CS 454 family) \"UK:C40\" (cube fcu, BS 5400-4 Table 3 Ec, as CS 455), \"UK:S355\" (BS 5400-3, 205 GPa), \"UK:B500\".",
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A library grade, optionally long term (concrete at half its short-term E).",
      +    "properties": {
      +      "grade": {
      +        "description": "Library id, e.g. \"UK:C40\", \"EN:C35/45\", \"EN:S355\".",
      +        "type": "string"
      +      },
      +      "longTerm": {
      +        "default": false,
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "grade"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "E": {
      +        "type": "number"
      +      },
      +      "nu": {
      +        "default": 0.2,
      +        "type": "number"
      +      },
      +      "unit": {
      +        "default": "MPa",
      +        "enum": [
      +          "MPa",
      +          "GPa",
      +          "kN/m2"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "E"
      +    ],
      +    "type": "object"
      +  }
      +]
  6. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: refusal on unconverged results, exact id-collision behavior (writes nothing, reports how many elements use it), read-back and value comparison after writing, units read at write time, and what replacement actually changes. The closing line ("called without apply it previews and applies in one call; preview: true only previews") sits awkwardly against "Previews unless apply: true with confirmPlanHash" and leaves some doubt about whether a bare call mutates the model — a meaningful gap for a destructive tool. It does not contradict the annotations, which already flag a non-read-only, destructive operation.

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 the preview-then-apply sequence are front-loaded, and the destructive warning is bolded where it matters. A few clauses repeat points the schema already makes (id default, replaceExisting danger), and the closing server-specific sentence adds length while reducing clarity.

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 destructive, deeply nested write tool with no output schema, this covers the workflow, safety gates, failure modes, units, and reversal path. An agent has what it needs to call it correctly and safely.

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?

Schema description coverage is 100%, so the schema already documents id, apply, preview, confirmPlanHash and replaceExisting in detail. The description adds only that the section input matches section_preview and that id defaults to the next free id, which is already in the schema. Baseline 3 applies.

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 ("write a designed section into the model") and ties it explicitly to the preceding step ("after section_preview"). This clearly separates it from section_preview (inspect only) and section_write_undo (reverse).

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 workflow: preview, show the user the drawing and properties, get go-ahead, then apply with confirmPlanHash. It names the exclusion condition for replacement (replaceExisting only with user agreement) and names the undo sibling. The only wrinkle is the final server-specific sentence, which is addressed under behavioral transparency.

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