Skip to main content
Glama
freecad-mcp

freecad-mcp

freecad_add_sketch_polygon

Add a regular polygon (triangle, square, hexagon, etc.) to a FreeCAD sketch by defining its center, circumscribed radius, and number of sides.

Instructions

Add a regular polygon to a sketch (equilateral triangle, square, hexagon, etc.)

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>",
      "centerX": "<centerX>",
      "centerY": "<centerY>",
      "radius": "<radius>",
      "sides": "<sides>"
    },
    "name": "freecad_add_sketch_polygon"
  }
}

Input Schema

NameRequiredDescriptionDefault
sidesYesNumber of sides (3=triangle, 4=square, 6=hexagon, etc.)
radiusYesCircumscribed circle radius
centerXYesCenter X coordinate
centerYYesCenter Y coordinate
sketchNameYesName of the sketch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely drops it. It does not say whether the polygon is created as a closed wire with constraints, whether the sketch must be in edit mode, what happens on invalid values (e.g., sides < 3, zero radius), or what the call returns.

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?

A single, front-loaded sentence with no wasted preamble. It is appropriately short, though the parenthetical examples partly duplicate the schema and could be dropped without loss.

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 geometry constructor with no annotations and no output schema, the definition covers what is built but not the operating context — sketch state requirements, failure modes, and return behavior are all absent. The 100% schema coverage offsets some of this, keeping it at minimum-viable rather than inadequate.

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 every parameter is already documented in the schema, and the description adds no meaning beyond that. The parenthetical "(equilateral triangle, square, hexagon, etc.)" simply echoes the schema's examples for `sides`.

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 gives a specific verb and resource ("Add a regular polygon to a sketch") and clarifies with examples. It does not, however, distinguish this from the sibling freecad_draft_polygon or from freecad_add_sketch_rectangle, so an agent must infer which polygon tool fits a given sketch context.

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?

The phrase "to a sketch" implies that a target sketch must exist, but there is no explicit statement of prerequisites (open/active sketch, edit mode) or of when to prefer this over freecad_draft_polygon or freecad_add_sketch_rectangle. No alternatives or exclusions are named.

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