Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

create_sketch

Creates a new sketch on the XY, XZ, or YZ plane and optionally attaches it to a PartDesign Body, returning the sketch name and constraint status.

Instructions

Create a new sketch on a plane (XY, XZ, or YZ).

If body_name is specified, attaches the sketch to that PartDesign Body.
Returns the sketch name and constraint status.

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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_sketch"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name.Sketch
planeNoPlane XY, XZ or YZ; sketch plane is relative to its container, PartDesign mirror uses Body origin.XY
offsetNooffset: mm, container_local; offset along positive global X/Y/Z for YZ/XZ/XY.
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
body_nameNoInternal 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.8/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does notable work: it states the return payload (sketch name and constraint status), enumerates concrete error codes including transaction_conflict and execution_timeout, and warns that timeout is not cancellation so mutations must not be blindly retried. It stops short of saying whether the operation is undoable/transactional in the document tree or what happens when no active document exists.

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 first three sentences are front-loaded and efficient. The appended 'Contract:' block is generic cross-tool boilerplate, including area mm^2 and volume mm^3 units that are irrelevant to creating a sketch, which dilutes an otherwise tight definition.

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 not be explained, and the error contract covers failure modes for a 5-parameter, all-optional mutation tool. Remaining gaps are the document-context requirement (doc_name defaults to the active document) and undo/transaction behavior, which the description only hints at through an error code.

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 baseline is 3; the schema already documents name, plane, offset, doc_name and body_name in detail. The description adds a little meaning beyond the schema by spelling out that body_name implies attachment to a PartDesign Body and that names are internal and may be uniquified, but it does not clarify the offset direction or plane-relative-to-container semantics itself.

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?

States a specific verb and resource ('Create a new sketch') plus the constrained plane enum (XY, XZ, YZ) and the optional PartDesign Body attachment. No sibling tool creates sketches (the other sketch_* tools add geometry), so an agent can select this one unambiguously.

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?

The conditional 'If body_name is specified, attaches the sketch to that PartDesign Body' gives real usage context for one branch, but there is no explicit when-to-use/when-not or named alternative (e.g., creating a document first, or adding geometry after). Guidance is implied rather than stated.

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