Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

list_subelements

List filtered BRep faces, edges, or vertices by global geometry and revision tokens without recompute; recompute explicitly when geometry is not ready.

Instructions

List filtered BRep faces/edges/vertices with global geometry and revision tokens, without recompute. geometry_not_ready requires explicit recompute.

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>",
      "obj_name": "<obj_name>",
      "kind": "<kind>"
    },
    "name": "list_subelements"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesBRep subelement kind.
limitNoMaximum returned matches; total counts all matches, at most 10000 subelements scanned.
offsetNoZero-based match offset; requery after any revision change.
filtersNoAND-combined geometric filters; null lists all.
doc_nameYesExplicit internal Name; no Label or active-document fallback.
obj_nameYesExplicit internal Name; no Label or active-document fallback.
toleranceNoAbsolute tolerance in mm (position/radius/length/BBox) or mm^2 (area).
angular_toleranceNoAngular tolerance in degrees; normals oriented, axes unoriented.

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

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and mostly does: it discloses that no recompute happens, that revision tokens go stale (schema: 'requery after any revision change'), the geometry_not_ready state, the full error taxonomy, and that timeouts are not cancellations. The only weak spot is that the 'never blindly retry mutations' warning is irrelevant to a read-only listing and dilutes the behavioral signal slightly.

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 text is front-loaded with purpose, then organized into a labelled 'Contract' covering units and errors, so structure is good. It is dense but not padded, though the mutation-retry warning is off-topic for this tool and could be cut.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 shapes need not be explained, and the description still flags that the legacy return shape is preserved. Combined with the error list, unit conventions, revision-token staleness, and the no-recompute guarantee, an agent has everything needed to call this correctly and interpret failures.

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 baseline is 3. The description adds marginal meaning beyond the schema through the unit conventions (mm, mm^2, volume mm^3) and 'field units override defaults', but the per-field x-unit tags already encode mm/deg, so this is reinforcement rather than new information.

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

Purpose5/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: 'List filtered BRep faces/edges/vertices', plus scope qualifiers ('global geometry and revision tokens, without recompute'). That clearly separates it from a mutating or highlighting operation, and the 'kind' enum in the schema confirms the three subelement classes.

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?

It gives conditional guidance for one case ('geometry_not_ready requires explicit recompute') and recommends explicit internal names, but never states when to use this tool rather than a sibling such as highlight_subelements or list_objects. The when-to-use context is only implied by the filtering and pagination semantics.

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