Skip to main content
Glama
SolidWorks MCP

SolidWorks MCP

by Sangpaa

list_components

Lists an assembly's components and mates with names, paths, states, flags, positions, rotations, bounding boxes, and mate errors to inspect structure and verify placement.

Instructions

List the assembly's components (name, path, fixed, state, hidden, position, rotation, bounding box) and mates.

Positions are in mm and rotations in degrees, both in assembly coordinates; the bounding box of each component is in assembly coordinates too. Each mate gives its name, SolidWorks type, the dimension of a distance or angle mate, and an error when SolidWorks flags it. A component that shows no geometry carries a problem (see replace_component). state is resolved, lightweight or suppressed; a lightweight component gets no box. boxes=False skips the boxes, the slow part in a large assembly.

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_components"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.21.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden, and it does more than most: units (mm, degrees), coordinate frame (assembly coordinates), the meaning of `state` values, the rule that lightweight components get no bounding box, and the cost profile of boxes. It still leaves the operation's read-only nature, the target document (active assembly?), and failure behavior when nothing is open unstated.

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?

Front-loaded with the purpose, then grouped into output-field semantics, units, and the parameter tradeoff. The field enumeration parenthetical is long but earns its place; a few clauses (the mate error flagging) could be tightened.

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?

With no output schema and no annotations, the description does the heavy lifting well: it names every returned field, gives units and coordinate frame, and explains the degraded lightweight case. The main remaining gap is which assembly is listed and what happens if none is active.

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 0% and the single parameter is documented only as a boolean with default true. The description rescues it by explaining that boxes=False skips the bounding boxes and that boxes are 'the slow part in a large assembly', which is genuine performance guidance not derivable from the schema.

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?

States a specific verb and resource ('List the assembly's components ... and mates') and even enumerates the returned fields (name, path, fixed, state, hidden, position, rotation, bounding box). It does not carve out its scope against look-alike siblings such as list_bodies or list_faces, and the inclusion of mates inside a 'components' tool is not reconciled with any sibling, so it falls short of 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?

Usage is only implied: this is the way to inspect an assembly's components, and the `problem` field points the agent to replace_component for broken components. There is no explicit 'use this when X, not Y' routing and no stated prerequisites (e.g. that an assembly must be the active document).

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