Skip to main content
Glama
maximedns5

freecad-mcp

by maximedns5

add_rectangle

Add a fully-constrained rectangle to a sketch, with exact width, height, and corner position. It is automatically locked, so the sketch is ready for padding or pocketing without extra dimensioning.

Instructions

Add a fully-constrained rectangle to a sketch, corner at (x, y).

The rectangle is locked in place (not just shaped) as it is created, so
the sketch is immediately safe to pad/pocket — no separate dimensioning
step needed.

Args:
    doc_name: The name of the document.
    sketch_name: The name of the sketch to add geometry to.
    width: Rectangle width along the sketch's local X axis.
    height: Rectangle height along the sketch's local Y axis.
    x: X coordinate of the rectangle's corner in sketch-local space.
    y: Y coordinate of the rectangle's corner in sketch-local space.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
widthYes
heightYes
doc_nameYes
sketch_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds valuable context about the rectangle being 'fully-constrained' and 'locked in place,' which is a meaningful side effect. However, it does not mention potential failures, permissions, or what happens to existing sketch geometry.

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?

The description is concise and well-structured: a brief introductory sentence, a short paragraph on the constraint benefit, and a clear Args list. Every sentence adds value without unnecessary verbosity.

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?

The description is fairly complete for a simple geometry-add tool. It covers purpose, benefit, and parameter semantics. It doesn't discuss prerequisites like whether the sketch must exist or be open, but the sibling tools (e.g., create_sketch) imply this context. The presence of an output schema reduces the need to describe return values.

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

Parameters5/5

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

The schema description coverage is 0%, but the Args section fully compensates by describing all six parameters with meaningful details. For example, 'width' is clarified as 'along the sketch's local X axis' and coordinates are specified as 'sketch-local space,' adding semantics beyond the schema.

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?

The description clearly states the tool's function: 'Add a fully-constrained rectangle to a sketch, corner at (x, y).' This is a specific verb + resource, and it distinguishes the tool from siblings like add_circle and add_polygon.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains when this tool is advantageous: 'the sketch is immediately safe to pad/pocket — no separate dimensioning step needed.' This gives clear context for use, though it does not explicitly name alternative tools or mention when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maximedns5/freecad-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server