Skip to main content
Glama
SolidworksMCP-python

SolidworksMCP-python

Split Body

split_body

Split the active part’s bodies with a fully crossing plane or sketch and keep every resulting piece in the part for downstream modeling or printing.

Instructions

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

Split the active part's bodies with a plane or a sketch, keeping every piece in the part.

E.g. cut a part in two at the Right Plane to print it in halves. The plane or sketch must cross the bodies all the way. Fails, changing nothing, when the tool is unknown or the split makes no new body. To save a piece as its own part, use save_body_as_part. Needs: a part with a body. Changes: adds a Split feature. Returns: split with name, made (the new bodies' names), 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": "split_body"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_dataYes`tool`, a plane or sketch name.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), it discloses the failure mode ("Fails, changing nothing"), the side effect ("adds a Split feature"), the precondition (needs a part with a body), and the maturation caveat (beta, verified only in a scratch run). Those details are exactly what the generic hints cannot convey.

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, with almost no filler—each sentence carries needs/changes/returns or a failure mode. The only weakness is that it leads with the beta disclaimer instead of the tool's purpose, which slightly delays the main point.

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 what the tool needs, what it changes, its failure behavior, and its return payload, and it points to the right sibling. An agent has everything needed to decide whether to call it and what to expect, even though an output schema also exists.

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 baseline is 3; the description adds concrete meaning by naming an example plane ("Right Plane") and restating that every body the tool crosses is split. The gain is modest because the schema's own field text already defines acceptable values.

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 plus scope: "Split the active part's bodies with a plane or a sketch, keeping every piece in the part." The parenthetical clarifies the scope (everything stays in the part), which separates it from save_body_as_part, the sibling that exports a body.

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

Usage Guidelines5/5

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

Gives a concrete use case ("cut a part in two at the Right Plane to print it in halves"), a hard prerequisite ("The plane or sketch must cross the bodies all the way"), and an explicit alternative ("To save a piece as its own part, use `save_body_as_part`"). It even says when the tool is the wrong choice, because the tool fails when the split makes no new 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