Skip to main content
Glama
SolidWorks MCP

SolidWorks MCP

by zmf678

add_thread

Cuts a real GB/T 196/197 metric thread on a SolidWorks rod or hole at the start edge, running a set length into the material and returning mass properties and thread dimensions.

Instructions

Cut a real, printable GB/T 196/197 metric thread (SolidWorks' own Thread feature).

size: e.g. 'M10x1.5', 'M3x0.5', 'M10x1.0' -- checked against SolidWorks' thread profiles. (x_mm, y_mm, z_mm) = centre of the circular edge where the thread starts: the end face of a rod, or the mouth of a hole (internal=True). It runs length_mm into the material, right-handed. External: the rod must have the nominal diameter (M10 -> Ø10). Internal: drill the GB/T 196 basic minor diameter first, D - 1.0825*P (M10x1.5 -> Ø8.376). Returns mass properties and the thread's size, pitch and diameters.

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": {
      "size": "<size>",
      "x_mm": "<x_mm>",
      "y_mm": "<y_mm>",
      "z_mm": "<z_mm>",
      "length_mm": "<length_mm>"
    },
    "name": "add_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThread
sizeYes
x_mmYes
y_mmYes
z_mmYes
internalNo
length_mmYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the thread standard/profile validation, right-handed direction, subtractive behavior ('Cut'), required preconditions for internal threads, and that mass properties and thread dimensions are returned. It omits permission/model-mutation specifics and error behavior for invalid sizes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence states purpose immediately, followed by compact parameter guidance and return information. No sentence is filler; examples and formulas directly support correct invocation.

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 7-parameter mutation tool with no annotations and no output schema, the description covers size, location, length, internal/external prerequisites, and return values. It still lacks any note on the optional name parameter and failure handling, so it is strong but not fully complete.

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%, so the description must supply parameter meaning; it explains size format and validation, the center-of-circular-edge meaning of x_mm/y_mm/z_mm, internal=True for holes, and length_mm's inward direction. The optional name parameter is left unexplained, preventing a 5.

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?

The description states a specific verb and resource ('Cut a real, printable GB/T 196/197 metric thread') and identifies it as SolidWorks' own Thread feature, so the tool's action is clear. It does not explicitly contrast with sibling hole tools such as add_hole or add_hole_wizard, so it stops short of top score.

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?

It gives prerequisites for external versus internal threads, including nominal rod diameter and predrilled minor diameter, which implies when the tool applies. However, it does not say when to use this instead of add_hole or add_hole_wizard, nor does it state exclusions.

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