Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

partdesign_linear_pattern

Creates a linear array of a PartDesign feature along an X, Y, or Z axis using a total length in mm and number of occurrences, including the original.

Instructions

Create a linear pattern (array) of a feature.

Args:
    feature_name: Feature to pattern
    direction: 'X', 'Y', or 'Z'
    length: Total span of the pattern in mm
    occurrences: Number of copies including original

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": {
      "feature_name": "<feature_name>"
    },
    "name": "partdesign_linear_pattern"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name.LinearPattern
lengthNolength: mm, feature_local.
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
directionNoX/Y/Z Body-origin axis for linear pattern; isometric/front/back/top/bottom/left/right for set_view.X
occurrencesNoInteger count including original feature, at least two for a pattern.
feature_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
feature_namesNoAdditional internal PartDesign feature Names in the same Body; duplicates are ignored.
direction_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

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description must carry behavioral disclosure. It helpfully adds error codes, unit conventions, internal-name guidance, and a warning that timeouts are not cancellation and mutations should not be blindly retried, but it does not state document/Body prerequisites, permissions, or exactly what side effects occur when the pattern feature is created.

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 purpose is front-loaded and the Args list is compact, which is good structure. The generic contract boilerplate adds some useful error/retry context, but it also includes irrelevant area/volume units and a vague 'legacy return shape preserved' clause for this specific tool.

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?

The tool has eight parameters, no annotations, a rich schema, and an output schema, so return-value explanation is not required. The description covers the core invocation and error behavior, but for a mutation tool it omits prerequisites such as requiring an active document or PartDesign Body, leaving it only adequate rather than complete.

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 the schema already documents all parameters and a baseline of 3 is appropriate. The description lists four of eight parameters and clarifies that length is the total pattern span and occurrences includes the original, but leaves name, doc_name, feature_names, and direction_name to the schema.

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 states a specific verb and resource: 'Create a linear pattern (array) of a feature.' The word 'linear' distinguishes it from sibling polar or mirrored pattern tools, but it does not explicitly compare or route against those siblings.

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?

Usage is implied by 'linear pattern' and the X/Y/Z direction argument, so an agent can infer it is for repeated copies along an axis. However, there is no explicit when-to-use/when-not-to-use guidance and no alternative such as polar_pattern, mirrored, or multi_transform is 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