Skip to main content
Glama
SolidworksMCP-python

SolidworksMCP-python

Delete/Keep Bodies

delete_bodies
Destructive

Deletes bodies from the active part, or keeps only the named ones with keep=true. Fails without changes if a name is unknown or all bodies would be removed.

Instructions

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

Delete bodies from the active part, or with keep=true keep only the named ones.

Fails, changing nothing, when a name is unknown or every body would go. Needs: a part with the bodies (list_bodies). Changes: adds a Body-Delete/Keep feature (undo with delete_feature). Returns: delete with name, removed (the bodies deleted), 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": "delete_bodies"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_dataYes`bodies`, and `keep`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true/idempotentHint=false annotations by disclosing atomic failure conditions ("Fails, changing nothing, when a name is unknown or every body would go"), the mutation's footprint ("adds a Body-Delete/Keep feature"), the undo path, and a beta maturity caveat. No contradiction with annotations — the description confirms a destructive, non-idempotent write.

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 Needs/Changes/Returns labeling is efficient and easy to scan, and each line carries actionable information. The beta disclaimer occupies the front position ahead of the actual purpose statement, which slightly dilutes front-loading but is short and genuinely informative.

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?

For a destructive, single-operation mutation with a nested input object, the description covers prerequisites, failure atomicity, side effects, undo, and return contents. The Returns section partially duplicates the existing output schema, but nothing an agent needs in order to call this safely is missing.

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%, and the schema already spells out keep ("false deletes these bodies; true keeps only these and deletes the rest") and bodies ("as list_bodies names them"). The description restates the keep behavior with its consequence but adds no new syntax, naming rules, or edge-case detail beyond the schema, so the baseline 3 applies.

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 ("Delete bodies from the active part") plus the inverse mode ("with keep=true keep only the named ones"), which an agent could not infer from the name alone. It also scopes the target to a part, distinguishing it from model-level deletion handled by delete_feature.

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 prerequisites ("Needs: a part with the bodies (`list_bodies`)") and the recovery route ("undo with `delete_feature`"), so the agent knows the required call order and the fallback. It stops short of an explicit when-to-prefer statement for keep vs delete beyond the parameter semantics, but the surrounding context is clear.

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