Skip to main content
Glama
SolidworksMCP-python

SolidworksMCP-python

Scale Body

scale_body

Scales SolidWorks part bodies uniformly or per axis around their centroid or the part origin, adding a Scale feature and returning volume changes.

Instructions

Beta: new: checked on SolidWorks by a scratch run, not yet by a live demo.

Scale bodies of the active part, uniformly or per axis, about their centroid or the origin.

Give scale (one factor) or scale_xyz ([x, y, z]); a body's volume is multiplied by the factors' product. Fails, changing nothing, when a name is unknown or every factor is 1. Needs: a part with a body. Changes: adds a Scale feature. Returns: scale with name, factors, the body names, counts and volumes before and after.

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": {
      "input_data": "<input_data>"
    },
    "name": "scale_body"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_dataYes`scale` or `scale_xyz`; `about` and `bodies` optional.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare this is a mutation (readOnlyHint=false) that is not idempotent and not flagged destructive. The definition adds context the annotations cannot carry: it fails atomically (changing nothing), it creates a Scale feature, and it notes the beta maturity (verified only by a scratch run on SolidWorks). It does not say whether the new feature can be undone or removed afterwards.

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?

The lead sentence comes first and conveys the core action, and the 'Needs / Changes / Returns' tail is compact and scannable. The beta caveat earns its place because it flags reliability. The doubled 'Beta: new:' prefix is slightly noisy, but overall the definition is tight.

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?

An output schema exists, yet the definition still names the return shape (name, factors, body names, pre- and post-counts and volumes), and it covers prerequisites, failure behavior, and mutation effects. The only gap left is whether the operation applies outside the active part or in assemblies, and there is no note on how to remove the Scale feature afterward.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter is already documented in the input schema, which sets the baseline at 3. The definition adds one genuine insight beyond the schema: a body's volume is multiplied by the product of the factors, which tells the agent how the numbers behave. It does not add constraints (for example, whether per-axis scaling distorts geometry) beyond what the schema already states.

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 definition states a specific verb and resource: scaling the bodies of the active part, uniformly or per axis, about the centroid or the origin. That is concrete enough for an agent to act on without opening the schema. It never names a sibling such as set_sheet_scale or move_copy_body to delineate scope, so it stops short of a 5.

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 definition gives real preconditions (it needs a part with a body) and failure conditions (an unknown name or all factors equal to 1 makes it fail without changing anything), which is useful when deciding whether to call it. It offers no when-to-use-vs-alternative routing, however, so the agent must infer when to pick scaling over moving or saving a body.

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

Deploy Server

Other Tools