Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

highlight_subelements

Marks revision-checked subelement matches in the FreeCAD GUI without changing visibility or geometry; stale input keeps the prior selection.

Instructions

Mark revision-checked matches in the GUI without changing visibility or geometry. No document Undo entry; stale input preserves previous selection.

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

Input Schema

NameRequiredDescriptionDefault
doc_nameYesExplicit internal Name; no Label or active-document fallback.
selectionsYesComplete issued selections in this document; validate all before replacing its GUI selection. Empty clears only this document.

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

B3.1/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 mostly succeeds: it states the operation is non-mutating (no visibility/geometry change, no Undo entry), that stale revisions leave the prior selection intact, enumerates the error codes, and clarifies that timeout is not cancellation and mutations should not be blindly retried. The only gap is that return-value content is deferred entirely to the output schema and partial-vs-atomic failure behavior on validation is only implied.

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 first sentence is front-loaded and useful, but the remainder mixes relevant behavior (no Undo, stale input) with generic server-wide boilerplate about units for length/area/volume and a full error taxonomy that has little bearing on a GUI highlight call. Roughly half the text does not earn its place for this specific tool.

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 still covers the important behavioral edges: non-mutation, stale revision handling, and retry safety. Given the tool's low complexity and two string/array parameters, this is sufficient to call it correctly, though it could say more about what happens when individual selections fail validation.

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 the schema already explains doc_name, revision, subelement, and the empty-array clearing semantics; the baseline of 3 applies. The description adds little parameter-specific meaning beyond repeating the preference for explicit internal names, and its unit conventions (mm, mm^2, mm^3) are irrelevant to a tool whose parameters are all strings.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Mark revision-checked matches in the GUI" identifies the resource area (subelements in a GUI) and the effect (marking/highlighting), and the contrast with visibility/geometry changes helps distinguish it from mutating siblings. However, "revision-checked matches" is obscure phrasing — it never plainly says it highlights the subelements listed in `selections`, so an agent must infer the core action.

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?

No explicit when-to-use or when-not-to-use guidance relative to alternatives; the agent is not told, for example, to call list_subelements first or how this differs from other query tools. The notes about lack of Undo and stale-input behavior describe consequences, not selection criteria for invoking 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