Skip to main content
Glama
freecad-mcp

freecad-mcp

freecad_add_sketch_rectangle

Add a rectangle to a FreeCAD sketch from two opposite corner coordinates, generating four lines with coincidence constraints for parametric CAD modeling.

Instructions

Add a rectangle to a sketch (4 lines with coincidence constraints)

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": {
      "sketchName": "<sketchName>",
      "x1": "<x1>",
      "y1": "<y1>",
      "x2": "<x2>",
      "y2": "<y2>"
    },
    "name": "freecad_add_sketch_rectangle"
  }
}

Input Schema

NameRequiredDescriptionDefault
x1YesFirst corner X coordinate
x2YesOpposite corner X coordinate
y1YesFirst corner Y coordinate
y2YesOpposite corner Y coordinate
sketchNameYesName of the sketch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does add genuine value by disclosing that the rectangle is decomposed into 4 lines with coincidence constraints, so the agent knows constraints will be created as a side effect. It omits preconditions (sketch must exist / be in edit mode), the coordinate frame (sketch-local vs global), and failure behavior for a missing sketchName.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the resource and the geometric outcome, no filler and no redundancy. Nothing in it is wasted, even if more could usefully have been said.

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?

For a five-required-parameter mutation tool with no annotations and no output schema, the description covers the created geometry but not the preconditions, coordinate interpretation, or what the call yields. An agent could invoke it, but would likely do so blind on the sketch-edit-mode requirement.

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 five parameters including the x1/y1/x2/y2 corner semantics are already documented in the schema, making 3 the baseline. The description adds nothing beyond that — it never mentions corner coordinates, ordering, or whether the two corners may be given in any order.

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?

The description names a specific verb (Add) and resource (rectangle) scoped to a sketch, and the parenthetical clarifies it produces four lines joined by coincidence constraints. That distinguishes it from line/arc/circle siblings by shape, though it does not address freecad_draft_rectangle, which reads as a near-twin by name.

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?

There is no when-to-use guidance at all: nothing states that this requires an existing usable sketch, nor when to pick this over freecad_add_sketch_polygon, freecad_add_sketch_slot, or the draft-side freecad_draft_rectangle. The agent must infer the choice purely from tool names.

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