Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

undo

Revert the last operation in a FreeCAD document to restore the previous state; optionally target a specific document by internal name.

Instructions

Undo the last operation.

Contract: explicit internal names recommended. Length mm, area mm^2, volume mm^3; field units override defaults. Errors: invalid_arguments, document_not_found, object_not_found, transaction_conflict, operation_failed, execution_timeout; transport failures are possible. Timeout is not cancellation: never blindly retry mutations. Legacy return shape preserved.

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
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries full burden, and it does disclose a useful error taxonomy (transaction_conflict, operation_failed, execution_timeout) and the important warning that timeout is not cancellation and mutations should not be blindly retried. However, it omits what undo actually affects (which document, how deep the history goes, what happens when there is nothing to undo), and the length/area/volume unit contract is irrelevant boilerplate for a tool whose only parameter is a document name.

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?

The core sentence is front-loaded and clear, but the appended contract block is generic template text; the unit-conversion clause cannot apply to a single doc_name parameter and dilutes the signal. Roughly half the text does not earn its place for this tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the error list is helpful. For a mutation tool with zero annotations, though, the description should say what state is reverted and in what scope; instead it spends space on irrelevant unit conventions.

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% and the schema already explains that doc_name is an internal name, never a label or path, and that omission uses the active document. The description reinforces the naming rule and the legacy omission behavior, adding modest value rather than new semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and target: "Undo the last operation." An agent can tell this reverts the most recent change, but the description never states the scope (per-document vs. session-wide) or whether repeated calls walk an undo stack, and it names no sibling such as close_document_safe or cancel_job to differentiate from.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given, and no alternative is named. An agent gets no signal on whether undo applies to the active document only, whether it can be called repeatedly, or when a different recovery tool should be preferred; the only usage hint is "explicit internal names recommended" for doc_name.

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

Deploy Server

Other Tools