Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

sketch_add_slot

Adds a slot made of two parallel lines with semicircular ends to a FreeCAD sketch using local XY endpoints and radius in millimeters.

Instructions

Add a slot (two parallel lines connected by semicircles) to a sketch.

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>",
      "x1": "<x1>",
      "y1": "<y1>",
      "x2": "<x2>",
      "y2": "<y2>",
      "radius": "<radius>"
    },
    "name": "sketch_add_slot"
  }
}

Input Schema

NameRequiredDescriptionDefault
x1Yesx1: mm, sketch_local_xy.
x2Yesx2: mm, sketch_local_xy.
y1Yesy1: mm, sketch_local_xy.
y2Yesy2: mm, sketch_local_xy.
radiusYesradius: mm, sketch_local_xy.
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.
constructionNoTrue creates sketch construction geometry; false creates profile geometry.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

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 burden. It does provide a useful error taxonomy (invalid_arguments, document_not_found, transaction_conflict, operation_failed, execution_timeout) and an important retry warning ('Timeout is not cancellation: never blindly retry mutations'), which is genuinely valuable. However, it does not say what sketch state or existing geometry may be affected, whether the sketch must be open/editable, or what the mutation requires in terms of prior state.

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?

The shape definition is front-loaded in the first sentence and the remaining lines are dense but purposeful. 'Legacy return shape preserved' is opaque filler for an agent, and the error list reads as boilerplate. Overall it is compact with minimal wasted text.

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 parameter documentation is fully covered by the schema. What remains missing is the geometric interpretation of the six required coordinates/radius — whether x1,y1,x2,y2 are the two arc centers or the overall bounds — which materially affects correct invocation. For an 8-parameter mutation tool with no annotations, that is a real gap.

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 coverage is 100%, so the schema already documents each field, including units and coordinate system. The description adds the unit-defaults override rule ('field units override defaults') and the 'explicit internal names recommended' hint for doc_name/sketch_name. It adds nothing about what x1/y1/x2/y2 geometrically represent, which is the main semantic question for this tool.

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 plus a geometric definition: 'Add a slot (two parallel lines connected by semicircles) to a sketch.' This distinguishes it in substance from sketch_add_rectangle or sketch_add_polygon. It stops short of naming which sibling to use instead when the shape is ambiguous.

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 explicit when-to-use or when-not-to-use guidance and no routing to alternatives among the many sketch_add_* siblings. Usage is only implied by the tool name and the shape definition. The 'Contract' sentence addresses naming conventions, not selection.

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