Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

delete_objects

Deletes confirmed FreeCAD objects and their dependency/ownership closure in one transaction, with safe failure if confirmation changes or external references exist.

Instructions

Delete exactly the confirmed dependency/ownership closure in one transaction. Changed confirmation or external references fail safely.

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

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": {
      "doc_name": "<doc_name>",
      "obj_names": "<obj_names>",
      "confirmed_objects": "<confirmed_objects>"
    },
    "name": "delete_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_nameYesExplicit internal Name; no Label or active-document fallback.
obj_namesYesRoot object Names from preview.
confirmed_objectsYesEvery Name in the current preview confirmation, without duplicates. Revalidated immediately before mutation.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
statusYes
warningsNo
referencesNo
contract_versionNo1.0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A4/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 burden and does so well: it discloses atomic single-transaction semantics, that changed confirmation or external references cause a safe failure, an enumerated error set including transaction_conflict and operation_failed, and the crucial note that timeout is not cancellation. The retry warning is exactly the kind of safety context a mutation tool needs beyond structured fields.

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 action and its scope, then broken into a contract/errors block that is scannable. The units sentence is a slight non sequitur for a delete operation and the error-code roster is dense, but no sentence is filler.

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 3-required-parameter destructive mutation with an output schema already covering return values, the description supplies atomicity, failure semantics, retry guidance, and naming rules. It could go one step further by stating irreversibility or how to refresh a stale confirmation, which is the main residual gap for a delete.

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 description coverage is 100%, so the baseline is 3; the description still adds value by requiring explicit internal names (no Label or active-document fallback) and by stating "Every Name in the current preview confirmation, without duplicates," which explains the relationship between obj_names and confirmed_objects. The unit defaults (mm, mm^2, mm^3 with field-level override) add a contract dimension absent from the schema.

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?

"Delete exactly the confirmed dependency/ownership closure in one transaction" gives a specific verb plus a precisely scoped resource, including the cascade notion (dependents/owned objects). It distinguishes this from a single-object delete by insisting on the confirmed closure, though it never names delete_object or preview_delete explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: "Root object Names from preview" and the confirmed_objects parameter signal that a preview/confirm flow must precede this call, and "never blindly retry mutations" gives one concrete operational rule. It never says when to pick this over delete_object or how to obtain the preview, leaving the agent to infer the workflow.

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