Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

sketch_delete_geometry

Deletes a sketch geometry element and any constraints that natively depend on it, keeping the sketch consistent.

Instructions

Delete one geometry element and constraints that natively depend on it.

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": {
      "sketch_name": "<sketch_name>",
      "geo_idx": "<geo_idx>"
    },
    "name": "sketch_delete_geometry"
  }
}

Input Schema

NameRequiredDescriptionDefault
geo_idxYesSketch geometry index, zero-based; FreeCAD external axis indices may be negative.
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
sketch_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose meaningful traits — cascading deletion of dependent constraints, unit conventions with field overrides, the error taxonomy, and the 'timeout is not cancellation: never blindly retry mutations' warning — but it never states reversibility/undo, permission or transaction prerequisites, or what the cascade means for constraint count, which are the details that matter most for a destructive mutation.

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?

The destructive action and cascade effect are front-loaded in one sentence, followed by a compact 'Contract:' block covering units, errors, and retry policy. A portion of that block reads as shared boilerplate (error enumeration, 'Legacy return shape preserved'), but it is dense and not padded.

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 values need not be explained, and the description covers units, error classes, retry safety, and cascade scope for a 3-parameter destructive tool. What is missing is the reversibility/undo story and any prerequisite about an open transaction or active document beyond the schema's default note.

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 earns an extra point by adding meaning beyond the schema, notably the unit defaults and field-level override rule and the 'explicit internal names recommended' convention that reinforces the schema's Name-not-Label warnings. It still adds nothing about geo_idx semantics (e.g. what index space is used after a cascade).

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 names a specific verb and resource ('Delete one geometry element') and adds the cascade scope ('constraints that natively depend on it'), which is enough to separate it from sketch_delete_constraint and sketch_delete_external by resource type. It does not explicitly name those siblings, so an agent must infer the boundary from resource nouns alone.

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 by the resource ('geometry element') rather than stated, and there is no explicit when-to-use or when-not guidance relative to siblings such as preview_delete or delete_object. The 'explicit internal names recommended' line is a calling convention, not alternative-selection guidance.

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