Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

partdesign_pocket

Creates a subtractive extrusion from a sketch to cut a pocket at a set depth or through the entire part.

Instructions

Create a pocket (subtractive extrusion) from a sketch.

Args:
    length: Pocket depth (ignored if through_all=True)
    through_all: Cut through entire part

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>"
    },
    "name": "partdesign_pocket"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name.Pocket
lengthNolength: mm, feature_local.
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
reversedNoReverse the feature direction relative to the profile/axis.
symmetricNoExtrude symmetrically about the profile plane; length is the total span.
sketch_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
through_allNoTrue cuts through all and ignores length; false uses the specified pocket length.
end_conditionNoExtrusion end condition: dimension, through_all, up_to_first, up_to_face, or two_lengths as supported by the tool.
second_lengthNosecond_length: mm, feature_local.
target_selectionNoRevision-checked target face in the same document; required only for up_to_face.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

B3.2/5.0
Behavior3/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 add real behavioral context beyond the schema: the enumerated error codes (invalid_arguments, document_not_found, transaction_conflict, operation_failed, execution_timeout), the warning that timeout is not cancellation and mutations must not be blindly retried, and the note that the legacy return shape is preserved. However, it never states the operation is destructive to the feature tree, what permissions/active-document state are needed, or what the mutating result looks like, leaving a mutation tool only partially disclosed.

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?

Purpose is front-loaded in the first sentence, followed by a compact Args section and a dense Contract block with units, error taxonomy, and retry policy. The Args list is redundant with a fully documented schema, but nothing is bloated or buried.

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 spelled out beyond the legacy-shape note. For a ten-parameter, mutating feature tool with no annotations, the description supplies units, error classes, and retry safety, which covers most of what an agent needs; the remaining gap is that the interdependency between end_condition, second_length, and target_selection is left entirely to the schema.

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 ten parameters including end_condition, reversed, symmetric, second_length, and target_selection are already documented in structured fields. The description restates only length and through_all ('ignored if through_all=True'), which duplicates the schema text ('True cuts through all and ignores length') rather than adding new meaning. Baseline 3 is appropriate when the schema does the heavy lifting.

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 opening sentence gives a specific verb and resource ('Create a pocket') and parenthetically disambiguates it as a 'subtractive extrusion', which implicitly separates it from the additive pad sibling. It stops short of naming the sibling (partdesign_pad) or boolean_cut as alternatives, so an agent must infer the routing.

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 / when-not-to-use guidance and no named alternative tools. The 'Contract' note recommending explicit internal names is a precondition, not usage routing, so the agent gets no help choosing between pocket, pad, groove, or boolean_cut for a given modeling intent.

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