Skip to main content
Glama
hjbaard

SolidWorks-MCP

by hjbaard

set_component_transform

Move and rotate an assembly component by specifying X, Y, Z and rotation angles, then verify the transform was applied—catches moves ignored due to mates or constraints.

Instructions

Move/rotate a component: its origin to (x, y, z) mm, rotated rx/ry/rz degrees.

name is the component name ('Bed' or 'Bed-1'); rotations apply X, then Y, then Z about the assembly axes, and work on a fixed component too. The transform is read back and compared, so a move SolidWorks ignored (e.g. one already pinned by mates) fails loudly instead of silently leaving the part where it was.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
x_mmYes
y_mmYes
z_mmYes
rx_degNo
ry_degNo
rz_degNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it delivers: it discloses rotation order (X then Y then Z about assembly axes), that fixed components are supported, and that the transform is read back and compared so ignored moves fail loudly. This goes well beyond a generic 'moves a component' statement, though it does not describe return values or success output.

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 carry high-density information with no fluff. The core action is front-loaded, and the second sentence adds crucial parameter and failure-mode details. Every clause earns its place.

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 7-parameter mutation tool with no annotations and no output schema, the description covers the essential invocation details: coordinates, rotation units/order, component naming, and error behavior. It is slightly ambiguous what 'fixed component' exactly means versus 'pinned by mates,' but overall it gives an agent enough to call and interpret the result.

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

Parameters5/5

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

Schema description coverage is 0%, and the description compensates fully: it explains name with example format ('Bed' or 'Bed-1'), gives units for x/y/z (mm) and rx/ry/rz (degrees), clarifies rotation order, and states the origin is moved to the provided coordinates. All seven parameters are meaningfully defined.

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 a specific verb and resource: 'Move/rotate a component: its origin to (x, y, z) mm, rotated rx/ry/rz degrees.' This clearly distinguishes the tool from siblings like set_dimension, set_material, and insert_component by stating exactly what it does.

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 through the description of behavior ('work on a fixed component too', 'fails loudly instead of silently leaving the part'), but there is no explicit 'use this when...' or comparison to alternative tools. The context is clear enough, but no exclusions or alternative routing are provided.

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