Skip to main content
Glama
SolidworksMCP-python

SolidworksMCP-python

List Bodies

list_bodies
Read-onlyIdempotent

Lists the active part's solid bodies with names, volumes, and bounding boxes. Use before body operations to get the exact body names they require.

Instructions

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

List the active part's solid bodies by name, with each one's volume and bounding box.

Use it before any body tool (combine_bodies, split_body, move_copy_body, delete_bodies, scale_body, save_body_as_part): they take these names. A part gets several bodies from create_extrusion with merge_result: false, a split or a copy. Needs: an open part. Read-only. Returns: bodies, each with name, volume_mm3 and bounding_box_mm (min, max, size), count and total_volume_mm3.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_bodies"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only and non-destructive behavior, and the description adds the open-part precondition plus a candid beta caveat about how the tool was validated. The return-value sentence partly duplicates the output schema, so it adds less than the precondition and beta note do.

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?

Purpose comes first, then usage, then preconditions, then returns — a sensible order with no filler. The 'Returns:' clause is somewhat redundant against the existing output schema, and the beta note at the very front slightly delays the actual purpose statement.

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 zero-parameter read tool with annotations and an output schema, nothing an agent needs is missing: the precondition, the downstream consumers, and the body-creation triggers are all present.

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?

Zero parameters, so there is nothing to disambiguate and the baseline applies. The description correctly spends no space on parameters and instead documents the output fields, which is the right emphasis here.

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 ('List the active part's solid bodies by name') plus the payload returned (volume, bounding box). Among the many list_* siblings, the resource is unambiguous without opening the schema.

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?

Explicitly says to call it before any body tool and names six of them, explaining that those tools consume the names this returns. It also explains how a part acquires multiple bodies (create_extrusion with merge_result: false, a split, or a copy), giving concrete triggering context.

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