Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

preview_delete

Preview the complete deletion set and required confirmation before removing objects; external dependents block deletion, so you can validate impact without mutating the document.

Instructions

Read complete deletion set and required confirmation without mutation. External dependents block deletion.

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>"
    },
    "name": "preview_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_nameYesExplicit internal Name; no Label or active-document fallback.
obj_namesYesRoot object Names; preview includes dependents and owned container contents.

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

A3.6/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does real work: it declares the operation non-mutating, discloses that external dependents block deletion, enumerates the error codes (invalid_arguments, document_not_found, object_not_found, transaction_conflict, operation_failed, execution_timeout), and warns that a timeout is not a cancellation and mutations must not be blindly retried. The only gap is that "legacy return shape preserved" is not explained.

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 purpose and the dependents-blocking rule are front-loaded, which is good. But the middle "Contract" block carries unit boilerplate (mm, area, volume, field units override defaults) that is irrelevant to a two-parameter preview tool, and the error-code enumeration plus "Legacy return shape preserved" read as generic template text rather than tool-specific guidance. Signal-to-noise is mediocre.

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?

An output schema exists, so return structure need not be described, and parameters are fully covered by the schema. The description supplies the read-only nature, the blocking precondition, and failure/retry guidance, which is most of what an agent needs. The unexplained "legacy return shape" note is the only loose end.

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 both parameters (doc_name, obj_names) are already documented in the schema, including the no-Label/no-active-document fallback and the dependents-and-owned-contents semantics of obj_names. The description only reinforces "explicit internal names recommended" and adds nothing about the 100-item cap or naming format. Baseline 3 is appropriate.

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?

The first sentence states a specific action and scope: it reads the complete deletion set and the confirmation that would be required, explicitly without mutating anything. That distinguishes it from the actual deletion siblings (delete_object, delete_objects) by behavior rather than by naming them, so an agent can infer the preview-vs-execute split. Naming the mutating counterpart explicitly would push this to a 5.

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?

"Without mutation" and "External dependents block deletion" imply the when-to-use context (dry-run before a destructive call) and one blocking precondition. However, the description never tells the agent to follow up with delete_object/delete_objects, and it does not say when a preview is unnecessary. Usage is implied rather than stated.

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