Skip to main content
Glama
hedless

Onshape MCP Server

by hedless

transform_instance

Apply relative translation and rotation to an assembly instance in inches and degrees. Ensure the instance is not fixed or grounded to avoid errors.

Instructions

Apply a RELATIVE transform to an assembly instance (inches and degrees). Note: fails on fixed/grounded instances — use get_assembly_positions to check the 'fixed' flag first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rotateXNoX rotation in degrees
rotateYNoY rotation in degrees
rotateZNoZ rotation in degrees
elementIdYesAssembly element ID
documentIdYesDocument ID
instanceIdYesInstance ID to transform
translateXNoX translation in inches
translateYNoY translation in inches
translateZNoZ translation in inches
workspaceIdYesWorkspace ID
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses the relative nature and the failure condition on fixed instances, which is key behavioral info. Could be improved by mentioning if it returns any value or has side effects.

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?

Two sentences with no wasted words. First sentence states purpose and units, second provides critical behavioral note and alternative. Highly efficient.

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?

Given no output schema and 10 parameters, the description covers the most critical behavioral aspect (fails on fixed). It could mention whether the function returns success or the new position, but it is sufficient for safe invocation.

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% with individual parameter descriptions. The description adds high-level semantics by stating 'relative transform' and explicit units (inches and degrees), which contextualizes the parameters beyond the schema.

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 clearly states the tool applies a RELATIVE transform to an assembly instance in inches and degrees. It distinguishes itself from siblings like set_instance_position by specifying 'relative' and including units.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the tool fails on fixed/grounded instances and directs the user to use get_assembly_positions to check the 'fixed' flag first, providing clear when-not-to-use and alternative guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hedless/onshape-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server