Skip to main content
Glama
SolidworksMCP-python

SolidworksMCP-python

Combine Bodies

combine_bodies

Join, subtract, or intersect bodies in an active SolidWorks part to form one body, such as subtracting a mould part from a block.

Instructions

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

Combine bodies of the active part: add them, subtract tool bodies from a main body, or keep their common volume.

E.g. a mould core: subtract the part from a block. The tool bodies are consumed and the result is one body (SolidWorks renames it after the feature, e.g. Combine1). Fails, changing nothing, when a name is unknown, the main body is also a tool, an add's bodies don't touch, or a subtract or common removes no volume. Needs: a part with the bodies (list_bodies). Changes: adds a Combine feature. Returns: combine with name, operation, the body names, counts and volumes before and after, and volume_change_mm3.

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": "combine_bodies"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_dataYes`operation`, `main_body` and `tool_bodies`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that tool bodies are consumed, that the result is a single body renamed by SolidWorks (e.g. `Combine1`), that failure is atomic ("changing nothing"), and that a Combine feature is added. These are exactly the side effects an agent needs for a non-readonly, non-idempotent mutation.

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 and front-loaded, with a useful Needs/Changes/Returns structure and zero filler sentences. The beta-status preamble and the mould-core example cost a little length but each carries real signal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers prerequisite, side effect, atomic failure modes, returned fields and volume delta for a nested-object mutation tool. Even though an output schema exists, the summary of the return payload lets an agent plan a follow-up call without inspecting it.

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%, so the schema already carries most parameter meaning; the description still adds value by framing `main_body` as "the body to keep" and `tool_bodies` as "consumed", and by tying failure conditions to specific parameters. It adds meaning rather than repeating the enum text verbatim.

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?

States a specific verb and resource ("Combine bodies of the active part") and immediately enumerates the three operation modes (add, subtract, common) with a concrete mould-core example. An agent can tell this apart from list_bodies and delete_bodies without opening any schema.

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

Usage Guidelines4/5

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

Gives a clear precondition ("Needs: a part with the bodies (`list_bodies`)") and an explicit list of when it fails (unknown name, main body also a tool, non-touching add, empty subtract/common). It stops short of naming when-not-to-use relative to any alternative sibling, so it is clear context without full routing.

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