Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

sketch_delete_external

Remove an external geometry link from a sketch by its zero-based external-list index to clean up references and resolve broken external constraints.

Instructions

Remove an external geometry link by its zero-based external-list index.

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

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.
external_idxYesExternal geometry list index, zero-based; the corresponding sketch geometry index starts at -3.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: it enumerates concrete error codes, warns that transport failures are possible, and explicitly states that a timeout is not a cancellation and mutations must not be blindly retried. That retry hazard is the most valuable line here. It omits whether the removal is reversible or what else is affected, which is the main remaining gap for a mutation.

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 purpose sentence is front-loaded and waste-free, but the contract block is boilerplate: the unit sentence (Length mm, area mm^2, volume mm^3; field units override defaults) has no bearing on a delete operation that takes no dimensional parameters. The error list is compressed but partially earns its place; the units clause does not.

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 and the "legacy return shape preserved" note flags that it is non-standard, so return values need not be explained. Errors, timeout semantics, naming conventions and index addressing are all covered. What is missing is the destructive-action profile an unannotated mutation needs: reversibility, and whether removing the link also removes dependent geometry.

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 coverage is 100%, so the schema already documents doc_name, sketch_name and external_idx, including the index convention and the -3 geometry-index mapping. The description only re-states "zero-based external-list index" and adds a generic "explicit internal names recommended" nudge that the schema already conveys via "pass explicitly." 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?

"Remove an external geometry link by its zero-based external-list index" gives a specific verb, a specific resource, and the addressing key, which distinguishes it from sketch_delete_geometry and sketch_delete_constraint by resource type. It stops short of explicitly naming those siblings or sketch_add_external as the inverse, so the differentiation relies on the agent parsing "external geometry link" itself.

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?

The description never says when to use this versus deleting sketch geometry, a constraint, or the whole object, and gives no prerequisites (e.g. that the external link must already exist). The "explicit internal names recommended" note is parameter advice, not usage routing, so an agent gets no 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