Skip to main content
Glama
SolidWorks MCP

SolidWorks MCP

by zmf678

add_counterbore_hole

Cuts a counterbored screw hole at specified X/Y coordinates on a +Z face, adding a clearance shank and larger flat-bottom pocket so cap-head screws or heat-set inserts sit flush or recessed.

Instructions

Cut a counterbored screw hole on the +Z face at (x_mm, y_mm).

A clearance shank through the thickness plus a larger coaxial flat-bottom pocket of cbore_depth_mm from the top 鈥?so a cap-head screw or heat-set insert sits flush/recessed (common for 3D-printed parts). cbore_diameter must exceed clearance_diameter. Coordinates share add_box's system. Returns mass properties.

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": {
      "clearance_diameter_mm": "<clearance_diameter_mm>",
      "cbore_diameter_mm": "<cbore_diameter_mm>",
      "cbore_depth_mm": "<cbore_depth_mm>",
      "x_mm": "<x_mm>",
      "y_mm": "<y_mm>"
    },
    "name": "add_counterbore_hole"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoCounterbore
x_mmYes
y_mmYes
cbore_depth_mmYes
cbore_diameter_mmYes
clearance_diameter_mmYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.0

TDQS

A3.8/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 burden and does well: it discloses the resulting geometry, a hard validity constraint ('cbore_diameter must exceed clearance_diameter'), the coordinate frame (shared with add_box), and the return value ('Returns mass properties'). It omits which solid/document the cut applies to — there is no target-body parameter and no statement of an implicit active body — which is a real gap for a mutating modeling call.

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 opening sentence is front-loaded with the operation, face, and coordinates, and the follow-up sentences each add geometry or a constraint rather than filler. Minor deduction for a corrupted character ('鈥?') in the parenthetical, which is a small readability defect in otherwise clean prose.

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 6-parameter modeling tool with no annotations and no output schema, the definition covers geometry, validity constraints, coordinate frame, and return values — nearly everything needed to call it. The remaining ambiguity is which body receives the cut and the role of the 'name' parameter, neither of which the schema documents.

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 compensate, and it largely does: x_mm/y_mm are grounded in add_box's coordinate system, cbore_depth_mm is defined as a depth from the top face, and the clearance/cbore diameter relationship is constrained explicitly. The 'name' parameter (default 'Counterbore') is never mentioned, and units are only implied by the _mm suffixes.

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 names a specific verb and feature ('Cut a counterbored screw hole'), pins the face ('+Z') and location '(x_mm, y_mm)', and distinguishes the geometry from a plain hole by describing the clearance shank plus coaxial counterbore pocket. It stops short of naming a sibling (e.g. add_hole or add_hole_on_face) as the alternative, so differentiation is by geometry only, not by explicit routing.

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 useful intent context ('so a cap-head screw or heat-set insert sits flush/recessed', 'common for 3D-printed parts'), which tells the agent the use case. However, there is no explicit when-to-use-this-instead-of guidance for the closely related add_hole / add_hole_on_face / add_hole_wizard siblings, so selection still requires inference.

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