Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

sketch_delete_constraint

Delete a single constraint from a sketch by index to remove unwanted geometric or dimensional relationships without rebuilding the sketch.

Instructions

Delete one constraint from a sketch.

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

Input Schema

NameRequiredDescriptionDefault
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.
constraint_idxYesSketch constraint index, zero-based in the current sketch state.

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?

With no annotations supplied, the description carries the full behavioral burden, and it does disclose a useful error taxonomy (invalid_arguments, object_not_found, transaction_conflict, etc.) plus the important retry caveat that timeout is not cancellation. However, it never states whether deletion is reversible, whether indices shift after deletion (critical for a zero-based index parameter), or what permissions are needed. Strong on failure semantics, silent on mutation consequences.

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 purpose is front-loaded in a single sentence, followed by a compact contract block. Some of the contract text (unit defaults, 'legacy return shape preserved') is generic boilerplate that does not apply to this parameterless-in-units operation, costing a little tightness but not readability.

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 needn't be described here, and the failure modes plus retry guidance are well covered. The remaining gap is tool-specific behavior: whether indices renumber after a delete and whether the operation is transactional/undoable. For a simple three-parameter mutation, this is close to complete.

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 all three parameters are already documented, including the zero-based index and the internal-name convention. The description reinforces 'explicit internal names recommended' but adds no new meaning, and the unit boilerplate (mm, mm^2, mm^3) is irrelevant to a delete-constraint call. Baseline 3 applies.

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 description opens with a specific verb and resource: 'Delete one constraint from a sketch.' The word 'constraint' implicitly separates it from geometry/external deletion siblings, and 'one' signals a single-target operation. It stops short of explicitly naming the sibling to prefer for geometry or external-reference deletion, so the differentiation is clear but not fully routed.

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?

There is no statement of when to use this versus siblings like sketch_delete_geometry or sketch_delete_external, nor any prerequisite such as needing the constraint to exist or the sketch to be unblocked. The only usage-adjacent note is 'explicit internal names recommended', which concerns how to pass parameters rather than when to call the tool.

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