Skip to main content
Glama

Set Dimension

set_dimension

Edits an existing named dimension in the active SolidWorks part and rebuilds the model, so you can update current geometry without creating a new document.

Instructions

Changes an existing named dimension in the active part and rebuilds it. Use this to edit the current model; it does not create a new document. Dimension names commonly include a name and feature suffix, such as D1@Sketch1.

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": {
      "dimension_name": "<dimension_name>",
      "value_mm": "<value_mm>"
    },
    "name": "set_dimension"
  }
}

Input Schema

NameRequiredDescriptionDefault
value_mmYes
dimension_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden. It does well to state that the model is rebuilt after the change and that the part must already be active/existing, but it omits failure behavior (e.g., what happens if the dimension name is not found) and any permission or document-state requirements.

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?

Three short sentences, front-loaded with the core action and effect, and the naming example earns its place by preventing a common format error. Minor redundancy between 'Changes an existing named dimension' and 'edit the current model'.

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?

An output schema exists, so return values need not be explained, and the rebuild disclosure covers the main behavioral surprise. What remains missing for a mutation tool with zero annotation coverage is error/edge-case behavior and how to obtain a valid dimension name, which matters given the many sibling feature-creation tools in this catalog.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for both parameters. It adds genuine meaning for dimension_name by giving the expected 'D1@Sketch1' name-plus-feature-suffix format, but value_mm is never mentioned — units, expected scale, and whether it overrides or offsets are left entirely to the param name.

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 opens with a specific verb and resource ('Changes an existing named dimension in the active part') and adds the rebuild side effect, so the operation is unambiguous. It implicitly separates itself from document-creating siblings by stating 'it does not create a new document', though it never names a direct alternative.

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?

It gives a clear usage scope ('Use this to edit the current model') and one exclusion (not for new documents), which is enough to route an agent between editing and creating. It gives no guidance on prerequisite steps such as discovering valid dimension names via the feature tree, nor does it name a sibling for that.

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