Skip to main content
Glama
NejcDvorsek

SolidWorks MCP

by NejcDvorsek

add_dimension

Adds dimensions to SolidWorks drawing views between references or for a single feature, supporting single, baseline, chain, and ordinate styles with direction and offset controls.

Instructions

Dimension in a view between references, or the size of one.

ref / to: 'edge:-x' (the face facing -x, seen edge-on), 'hole:CBore1' (its centre; alone its diameter), 'feature:CornerFillet' (alone: its radius), or a model point [x, y, z] (the edge nearest it). style 'single' (ref to to), or 'baseline' / 'chain' / 'ordinate' with to=[ref, ref, ...] measured from ref. direction 'auto', 'horizontal', 'vertical', 'aligned'. side 'below', 'above', 'left', 'right' (default nearer the geometry); offset_mm from the outline (default the first free row: 10, 18, 26 ...). Returns ids, values, boxes, and warnings on overlaps.

Input Schema

NameRequiredDescriptionDefault
toNo
refYes
sideNo
viewYes
styleNosingle
directionNoauto
offset_mmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.3

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose useful behavior: default side placement ('nearer the geometry'), default offset row progression (10, 18, 26 ...), and an explicit return payload of ids, values, boxes, and overlap warnings. It stops short of stating that this is a persistent mutation, whether it is undoable, or what error conditions exist.

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?

Dense but front-loaded: the core purpose is in the first sentence, followed by parameter semantics in a compact order. The telegraphic phrasing ('its centre; alone its diameter') occasionally reads like notes rather than prose, but no sentence is wasted.

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 zero schema description coverage and no annotations, the description covers most of what an agent needs: accepted reference syntaxes, style/direction/side vocabularies, placement defaults, and return contents. The unexplained required 'view' parameter and absent error/prerequisite behavior leave a real gap.

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 0%, so the description must compensate, and it largely does: ref formats ('edge:-x', 'hole:CBore1', 'feature:CornerFillet', model point [x, y, z]), to, style, direction, side, and offset_mm all get concrete value semantics and defaults. The required 'view' parameter is never explained — no format, no statement of what a view identifier is.

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?

States a specific action and resource: adding a dimension in a view between references, or a size of one. The scope (single span vs. series) is enumerated. It does not explicitly distinguish itself from siblings like set_dimension, list_dimensions, or import_dimensions, so an agent must infer the difference from the verb alone.

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?

The description gives strong in-tool guidance for choosing a style ('single' with ref/to vs. 'baseline'/'chain'/'ordinate' with to=[ref, ref, ...] measured from ref) and sensible defaults for side and offset. However it never says when to use this tool rather than set_dimension or import_dimensions, nor any prerequisite such as requiring an existing drawing view.

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