Skip to main content
Glama
SolidWorks MCP

SolidWorks MCP

by Sangpaa

batch

Run multiple SolidWorks modelling tools in one ordered call to cut round trips; a failed step rolls back only itself while earlier steps stay applied.

Instructions

Run several tools in one call, in order: one round trip instead of many.

steps: [{"tool": "open_part", "args": {"path": "..."}}, {"tool": "set_dimension", "args": {"dimension_name": "D1@Boss", "value_mm": 12}}, {"tool": "save_part", "args": {}}, {"tool": "close_part"}] Any tool except batch, stop_python, answer_dialog and list_dialogs. Each step is guarded as on its own: a failed step leaves the part as it was before that step; earlier steps stay done. With stop_on_error (default) the batch stops at the first failure and reports failed_step and the documents still open, so a part opened by the batch can be closed. A step held by a modal dialog fails the batch with call_on_hold: answer_dialog then returns that step's result only; send the remaining steps again. detail "last" (default) gives the last step's full result and, for the others, volume and bounding box instead of the full mass properties; "all" gives every result in full. Check the numbers of every step as you would one by one.

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": {
      "steps": "<steps>"
    },
    "name": "batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYes
detailNolast
stop_on_errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.21.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full disclosure burden and does so: per-step atomicity ('a failed step leaves the part as it was before that step; earlier steps stay done'), the stop_on_error default and its effect, the failed_step report plus the list of documents still open so a part can be closed, and the call_on_hold path for steps blocked by a modal dialog. These are precisely the behaviors an agent cannot infer from the schema, including recovery instructions for the interrupted-batch case.

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?

It is front-loaded with the purpose and the example, and nearly every sentence carries operational content (exclusions, atomicity, dialogs, detail modes). Some clauses are dense and run together ('Each step is guarded as on its own'), and the closing 'Check the numbers of every step as you would one by one' is advice rather than specification, but there is little true waste.

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?

For a complex meta-tool with no annotations and no output schema, coverage is strong: failure semantics, dialog interruption, and result verbosity are all addressed. The remaining gap is the overall success-response shape — it names failed_step and call_on_hold but does not say how per-step results are keyed or ordered on a fully successful run.

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 description coverage is 0% and steps is an untyped array (items: {}), so the description must compensate, and it does: it shows the {tool, args} step shape with a worked example and explains both detail values ('last' vs 'all') and the stop_on_error default. The gap is that per-step args semantics and the allowed step payloads are delegated implicitly to each referenced tool rather than stated, which is reasonable but leaves the caller to look elsewhere.

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?

The description opens with a specific verb and resource: 'Run several tools in one call, in order: one round trip instead of many.' It immediately establishes that this is a meta-tool that composes other tools, which is unmistakable against every sibling (open_part, set_dimension, save_part, etc.). An agent can decide to use it without opening any other 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?

It gives a concrete usage example and an explicit exclusion list: 'Any tool except batch, stop_python, answer_dialog and list_dialogs,' which functions as strong when-not guidance. It also covers the modal-dialog case and tells the caller to resend remaining steps after answer_dialog. What it does not say is when batching is a bad idea (e.g., when intermediate results must be inspected before choosing the next step), so there is a small gap.

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