Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

techdraw_create_dimension

Adds a model-bound native dimension to a TechDraw page from projected edge or vertex selections, keeping measurements associative and avoiding arbitrary annotation text.

Instructions

Create a genuine model-bound native dimension, never arbitrary text. No silent topology reassignment.

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>",
      "page_name": "<page_name>",
      "kind": "<kind>",
      "selections": "<selections>",
      "x": "<x>",
      "y": "<y>"
    },
    "name": "techdraw_create_dimension"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesPaper position in mm from bottom left.
yYesPaper position in mm from bottom left.
kindYesNative projected model dimension; mm or degrees for angle.
nameNoExplicit internal document or drawing object Name.Dimension
doc_nameYesExplicit internal document or drawing object Name.
page_nameYesExplicit internal document or drawing object Name.
selectionsYesFresh projected selections from techdraw_list_geometry; one same-page view.

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.5/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 behavioral burden and does substantial work: it promises no silent topology reassignment, documents unit defaults and per-field overrides, enumerates the six error codes, and warns that a timeout is not a cancellation and mutations should not be blindly retried. It omits any statement about what the tool writes to the document or whether an existing dimension can be displaced, but the safety-relevant surface is covered well.

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?

It is front-loaded with the core claim and free of filler, but the body is telegraphic fragments rather than prose. Lines like 'No silent topology reassignment' and 'Legacy return shape preserved' are opaque without surrounding context, so the density trades away comprehension for brevity.

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, and error/unit coverage is good. However, for a seven-parameter tool that depends on an opaque revision token from a prior geometry query, the description never explains how selection count varies by 'kind' or what the prerequisite call sequence looks like, leaving a real gap for an agent attempting a first invocation.

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 all seven parameters are already documented in structured data; the baseline of 3 applies. The description adds only marginal semantics beyond the schema — unit conventions and the 'field units override defaults' rule — while the important kind-to-selection-count mapping (radius/angle take one selection, distance takes two) is left unstated in both places.

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?

States a specific verb and resource ('Create a genuine model-bound native dimension') and rules out the degenerate case ('never arbitrary text'), which implicitly separates it from techdraw_create_annotation and techdraw_create_leader. It does not name an alternative sibling explicitly, so the differentiation must be inferred from the phrase 'model-bound'.

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?

The description implies the tool's niche (model-bound dimensions rather than annotations) but never states when to pick it over the annotation/leader siblings or what preconditions hold. The most actionable guidance — that selections must come fresh from techdraw_list_geometry — lives in the schema's property description rather than here. 'Explicit internal names recommended' is the only usage-style hint in the description itself.

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