Skip to main content
Glama
SolidWorks MCP

SolidWorks MCP

by Sangpaa

stop_python

Halts a running Python script at its next line when it outlives its call, without waiting on a busy COM thread; it cannot interrupt a COM call hung inside SolidWorks.

Instructions

Stop the run_python script that is running now, at its next line.

For a script that outlived its call (the call's error says the server, not SolidWorks, is working). It does not wait on the busy COM thread. A COM call that hangs inside SolidWorks is not interrupted.

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": "stop_python"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.21.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose the non-obvious semantics: cancellation is cooperative (stops at the next line) and it does not block on the busy COM thread. It stops short of saying what the tool returns or how quickly the stop is observable.

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 operative instruction is front-loaded in the first sentence, and the following sentences add only scope constraints. The parenthetical about the error message is somewhat cryptically worded and costs a re-read.

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 zero-parameter control tool with no output schema this covers the essentials: what it stops, when to reach for it, and the key limitation. The main omission is return/confirmation behavior after the stop is requested.

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?

The tool takes zero parameters, so there is no parameter meaning to convey and the baseline applies. Nothing in the description misleads about inputs.

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 names a specific action (stop) and a specific target (the run_python script currently running), and it names the sibling tool it pairs with. An agent can distinguish this control operation from run_python itself without inspecting either 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 supplies a concrete trigger condition: use this when a script outlived its call and the error indicates the server rather than SolidWorks is working. It also gives an exclusion – a COM call hung inside SolidWorks is not interrupted – though it does not explicitly state what to do in that case.

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