Skip to main content
Glama
dsh18235538266-crypto

onshape-mcp-codex

create_linear_pattern

Creates a linear pattern of selected features along a specified edge direction. Requires an edge ID to determine orientation and a distance and count for spacing.

Instructions

Create a linear pattern of features. Requires a deterministic edge id whose direction the pattern will follow — Onshape has no implicit world-X axis usable here. Workflow: create a reference (a sketch line on any plane pointing the direction you want, or pick an existing body edge via list_entities), then pass its id as directionEdgeId.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoPattern nameLinear pattern
countNoTotal number of instances
distanceYesDistance between pattern instances. Bare numbers are mm; use "10 mm" / "0.5 in" for explicit units.
elementIdYesPart Studio element ID
documentIdYesDocument ID
featureIdsYesFeature IDs to pattern
workspaceIdYesWorkspace ID
directionEdgeIdYesDeterministic id of an edge whose direction the pattern follows. Get from list_entities(kinds=['edges']) on an existing body, or from a sketch line you drew specifically as a reference. Required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden, and it uses this well by disclosing a non-obvious behavioral requirement: Onshape has no implicit world-X axis, so the directionEdgeId is mandatory. It also explains how to satisfy that requirement. It does not discuss side effects or errors, but the create semantics are reasonably transparent from context.

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 compact, well-structured, and front-loaded with the core purpose before the key requirement and workflow. Every sentence contributes useful information, and there is no fluff or repetition of schema-defined details.

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?

For a mutating tool with no output schema and 8 parameters, the description covers the hardest part—obtaining and passing directionEdgeId—and references a sibling tool (list_entities) for further help. It does not mention how to obtain featureIds or what happens after creation, but those gaps are partially covered by the schema and surrounding sibling tools, so the description is nearly complete.

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

Parameters4/5

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

Schema coverage is 100%, which sets a baseline of 3. The description adds real value on top by explaining that directionEdgeId must come from list_entities(kinds=['edges']) or from a dedicated sketch line, and by walking through the intended workflow. This goes beyond the schema's parameter descriptions.

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 opens with 'Create a linear pattern of features' — a specific verb and resource that clearly identifies what the tool does. The emphasis on a direction edge and the word 'linear' naturally distinguish this from create_circular_pattern without needing to name the sibling.

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 gives clear workflow context: a deterministic edge id must be obtained first, either from list_entities or from a sketch line drawn as a reference. It does not explicitly contrast with create_circular_pattern or say 'use this for straight-line patterns', so it stops short of full alternatives guidance.

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