Skip to main content
Glama
open-mcp-cad

open-mcp-cad

undo

Reverts recent Cadwork changes for one or more steps (up to 10 per call), restoring newly created elements and pre-registered edits to existing elements.

Instructions

Nimmt die letzten Änderungen in Cadwork zurück (Cadworks eigenes Rückgängig, wie der Knopf ↶ im Dock).

Ein Schritt ist ein Auftrag von execute_cadwork_command bzw. EIN Paket von execute_cadwork_batch — ein Lauf mit 20 Paketen braucht 20 Schritte. Höchstens 10 je Aufruf. Neu angelegte Elemente nimmt es immer zurück; Änderungen an bestehenden nur, wenn der Auftrag sie vorher mit aendert(ids) angemeldet hat.

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

Input Schema

NameRequiredDescriptionDefault
schritteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.3

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations at all, the description carries the full disclosure burden and does so unusually well: it explains that newly created elements are always rolled back while edits to existing elements are only reversible if the originating job declared them via `aendert(ids)`. That is a non-obvious precondition that would otherwise cause silent failed undos.

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-loaded with the purpose, then granularity, then the limit, then the caveat about existing elements — a logical order with no filler. It runs five short sentences where three might do, but every sentence contributes distinct information.

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 one-parameter, no-annotation, no-output-schema tool whose semantics are genuinely subtle, the definition covers purpose, unit of measure, limits, and reversibility preconditions. Nothing an agent needs in order to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, yet the single parameter 'schritte' (default 1) is fully explained: what one step corresponds to in terms of upstream calls, and the hard ceiling of 10 per invocation. This is a textbook case of the description compensating for an undocumented schema.

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 gives a specific verb and resource ('Nimmt die letzten Änderungen in Cadwork zurück') and anchors it to a concrete UI analogue (the ↶ dock button), so the agent knows exactly what operation this performs and how it differs from redo without reading 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 Guidelines4/5

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

It defines the unit of work precisely (one step = one execute_cadwork_command job or one execute_cadwork_batch package, 20 packages = 20 steps) and caps a call at 10, which is exactly the guidance an agent needs to pick a step count. It stops short of an explicit when-not-to-use or a pointer to the redo sibling, so it is strong but not complete routing guidance.

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