Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

sketch_constrain_radius

Sets a circle or arc radius (mm) in a FreeCAD sketch by geometry index, with explicit sketch and document names for reliable edits.

Instructions

Set radius of a circle or arc.

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": {
      "sketch_name": "<sketch_name>",
      "geo_idx": "<geo_idx>",
      "radius": "<radius>"
    },
    "name": "sketch_constrain_radius"
  }
}

Input Schema

NameRequiredDescriptionDefault
radiusYesradius: mm, sketch_local_xy.
geo_idxYesSketch geometry index, zero-based; FreeCAD external axis indices may be negative.
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
sketch_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations at all, the description does real work: it discloses that this is a mutation touching a transaction (transaction_conflict), enumerates the error surface, warns that timeout is not cancellation and mutations must not be blindly retried, and notes a preserved legacy return shape. It stops short of saying what happens if the geometry already carries a radius or conflicting dimensional constraint, or whether the change is undoable.

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 purpose is front-loaded in one clean sentence and the retry warning is well placed. The middle "Contract" run is templated filler — the mm/mm^2/mm^3 unit recital and unexpanded "Legacy return shape preserved" cost space without adding decision-relevant information for this radius-only 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 no explanation, and the description covers units, naming, error taxonomy, and retry safety for a 4-parameter mutation tool. The main remaining gap is constraint-interaction behavior (over-constraint or replacing an existing radius constraint), which matters for a sketcher constraint call.

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 already 100%, so this is additive: the contract clarifies that units default globally but per-field units override them, and that names must be internal Names rather than Labels for both doc_name and sketch_name. The geo_idx note about negative external axis indices comes from the schema rather than the description, and the unit sentence is generic boilerplate shared across tools, which caps the credit.

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?

"Set radius of a circle or arc" gives a specific verb and resource, and names both supported geometry types. It never mentions the sibling sketch_constrain_diameter, so an agent must infer which of the two dimensional constraints applies when both are possible.

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?

Usage is only implied by the operation itself (constrain a circle/arc's radius) plus the hint to pass explicit internal names rather than rely on the active document. There is no statement of when to prefer this over sketch_constrain_diameter, nor any prerequisite about the sketch/target geometry needing to exist.

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