Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

mesh_inspect

Inspect mesh geometry to retrieve facet, point, and component counts, global bounding box, closure, orientation, and defect counts without recomputing.

Instructions

Read facet/point/component counts, global bbox, closure, orientation and defect counts without 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>"
    },
    "name": "mesh_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_nameYesExplicit internal document or drawing object Name.
obj_nameYesExplicit internal document or drawing object Name.
area_toleranceNoDegenerate facet area threshold in mm squared.

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 exist, so the description carries the full load and does disclose real behavior: no recompute (read-only, cheap), unit conventions (mm, mm^2, mm^3 with field-level override), an enumerated error taxonomy, and timeout-vs-cancellation semantics. The 'never blindly retry mutations' line is boilerplate imported from a mutating tool and is slightly incongruous for a read-only inspection, and no permission/access prerequisites are mentioned.

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?

Front-loaded with the capability sentence, then tightly grouped contract/unit/error clauses; almost every sentence carries information. The long comma-separated error list and the mutation-retry caveat add bulk that is only partially relevant to a read tool.

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

Completeness3/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, though 'Legacy return shape preserved' is an unexplained reference that may confuse an agent. For a read-only inspection with no annotations, the absence of any statement about preconditions (document open, mesh present, access requirements) leaves a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds value: 'explicit internal names recommended' clarifies how doc_name/obj_name should be supplied beyond the schema's pattern/length rules, and the unit statement gives context for the area_tolerance default. It does not explain tolerance tuning trade-offs, so it stops short of a 5.

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?

States a concrete verb and resource ('Read facet/point/component counts, global bbox, closure, orientation and defect counts') and enumerates the exact metrics returned, which clearly separates it from the mutation siblings like mesh_repair or mesh_create. The qualifier 'without recompute' further pins down that this is a cheap, cache-reading inspection rather than a regeneration.

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?

'without recompute' implies the tool should be used when a mesh already exists and you only need measurements, but that inference is never stated explicitly. No alternative is named (e.g. inspect_object or mesh_repair) and no when-not condition is offered, so guidance is implied rather than directive.

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