Skip to main content
Glama

MIDAS CIVIL NX tools (MIDAS IT Europe)

Undo a recorded change

undo_run
Destructive

Use to reverse any change a tool made to the model (list the recorded runs, preview, then apply). For wind or PD 6694 loads use ec_wind_remove / pd6694_route_a_remove / pd6694_ssi_remove; to take out loads or supports added by hand use civil_remove_loads. Reverses one change a tool made to the model, from the record every apply leaves. Without runId it lists the recent runs (newest first) with what each changed; with runId it previews the undo (what will be deleted or restored) and writes nothing; with runId and apply: true it reverses that run, using the undo of the tool that made it. Undo later work before the model it sits on. Wind loads and PD 6694 loads are taken out with ec_wind_remove / pd6694_route_a_remove / pd6694_ssi_remove instead; the list says so.

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

Input Schema

NameRequiredDescriptionDefault
tidyNoBeam to Plate only: also delete nodes left unused.
applyNofalse (default): preview the undo. true: reverse the run.
forceNoBridge Reshaper and Bridge Thermal Loads only: undo even though the model changed since the run (their preview says when this is needed).
runIdNoThe run to reverse, from the list undo_run gives without runId (or from the apply's result).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the description does not need to establish that this mutates. It adds genuinely new behavior: each apply leaves a run record, runId without apply writes nothing, and the undo delegates to the owning tool's own undo routine. It does not say what happens on partial failure or when an undo is refused, which keeps it below 5.

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?

Mode semantics are front-loaded and easy to scan, but the wind/PD 6694 exclusion is stated twice in near-identical wording and 'Reverses one change a tool made to the model' repeats the opening sentence. Roughly a quarter of the text is redundant.

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 a four-parameter, no-output-schema mutation tool with annotations present, this covers mode selection, ordering constraints, runId provenance, and the exclusion cases. Missing only failure/rollback behavior and any hint about what the preview output looks like.

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 100%, so the baseline is 3; the description earns an extra point by explaining the interaction between runId and apply (list vs preview vs execute), which per-parameter schema text cannot convey. tidy and force are left entirely to the schema, which is acceptable since both carry full descriptions there.

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 description opens with a specific verb and resource ('reverse any change a tool made to the model') and immediately constrains the scope: only changes that a tool recorded, not hand-added loads or wind/PD 6694 loads. An agent can distinguish it from ec_wind_remove and civil_remove_loads 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 spells out the three call modes explicitly (no runId = list, runId = preview, runId + apply:true = reverse) and names the alternative tools for the cases this one does not cover. It even adds an ordering rule: undo later work before the model it sits on.

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