Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

techdraw_scrub_edges

Cleans selected face-boundary edges via native TechDraw scrubbing, creating an independent Part compound while leaving source geometry unchanged.

Instructions

Clean face-boundary edges using native TechDraw.scrubEdges.

Requires the runtime API exposed in FreeCAD 1.1.4. Creates an independent
Part compound, not a drawing page or a parametric wire; sources stay unchanged.
Native cleanup prunes open or dangling edges; it is not a geometric union.
Unsupported runtimes return unsupported_feature, stale selections are rejected.

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

Input Schema

NameRequiredDescriptionDefault
nameNoRequested internal Name of the static result compound.ScrubbedEdges
edgesYesRevision-checked edge selections from one document, in document-global coordinates (mm). Duplicates are allowed.
doc_nameYesExplicit target document Name.

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.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses side effects ('sources stay unchanged', 'creates an independent Part compound'), mutation-safety guidance ('never blindly retry mutations', timeout is not cancellation), and specific failure behaviors (unsupported_feature, stale selections rejected). It omits reversibility/undo semantics and does not explain 'legacy return shape', leaving minor gaps.

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 the first sentence, followed by logically grouped behavioral notes and a trailing contract block. Some of the contract boilerplate (error list, unit defaults) reads as generic policy and is less directly tied to this operation, but nothing is redundant enough to penalize heavily.

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 described, and the description still covers runtime requirements, side effects, and error conditions for a moderately complex mutation. The remaining ambiguity around 'legacy return shape' and undo behavior is minor given the otherwise thorough coverage.

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 all three parameters including coordinate and revision semantics, making 3 the baseline. The description adds unit meaning ('Length mm, area mm^2, volume mm^3; field units override defaults') and 'explicit internal names recommended', which is modest added value over the schema rather than deep parameter guidance.

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 line names a specific verb and resource ('Clean face-boundary edges using native TechDraw.scrubEdges') and immediately contrasts the result with siblings ('a Part compound, not a drawing page or a parametric wire'). An agent can distinguish this from the page/view creation tools without opening the schema.

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

Usage Guidelines4/5

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

It gives clear preconditions ('Requires the runtime API exposed in FreeCAD 1.1.4') and negative scoping ('it is not a geometric union', 'not a drawing page or a parametric wire'), which implicitly routes union-style work elsewhere. It stops short of naming a specific alternative tool for those cases, so no explicit when-to-use-this-vs-that routing.

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