Skip to main content
Glama
danielproxd2

MCP_CAD

by danielproxd2

add_bolt_circle

Creates a circular pattern of holes (bolt circle) with a single sketch and extrude cut, configurable by hole count, diameter, and angular offset.

Instructions

Agregar un círculo de pernos — N barrenos en círculo, en una operación.

Composes a single sketch with N circles placed at (cx + r·cos θ, cy + r·sin θ) plus one extrude_cut. Sketch-based (not feature-pattern- based) so it works for any center position — not restricted to origin-centered geometry.

Args: plane: Sketch plane. Same name conventions as other composites. center_x_mm, center_y_mm: Center of the bolt circle in sketch coords. circle_diameter_mm: Diameter of the bolt circle (the imaginary circle the BOLT CENTERS sit on — NOT the individual hole diameter). Must be > 0 and > hole_diameter_mm. hole_count: Total number of holes (3..24 typical). Must be >= 3. hole_diameter_mm: Individual through-hole diameter. Must be > 0 and < circle_diameter_mm. angle_offset_deg: Rotation of the first hole from the +X axis. Default 0 = first hole on the +X side. Useful for aligning bolt patterns to existing geometry. end_condition: "through_all" (default) or "blind" with depth_mm. depth_mm: Required when end_condition="blind". reverse_direction: Flip the cut direction (escape hatch for when the parent body sits on the opposite side of the sketch plane and the holes would cut into air). Same semantics as extrude_cut. target_bodies: Restrict the cut to these body names (from get_active_part_info "bodies"); None lets SW cut every body the holes intersect — pass a list to scope a through pattern in a multi-body part.

Returns the resulting Cut-Extruir Feature info (single feature for all N holes — they share one sketch).

Caveat: NOT parametric. Changing hole_count requires deleting the feature and re-running the composite. For parametric counts use create_reference_axis + circular_pattern (origin-only axes for now).

Example — 6-bolt M8 clearance (8.5mm) on a O60mm bolt circle, Top plane: add_bolt_circle("top", 0, 0, 60, 6, 8.5)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
planeYes
depth_mmNo
hole_countYes
center_x_mmYes
center_y_mmYes
end_conditionNothrough_all
target_bodiesNo
angle_offset_degNo
hole_diameter_mmYes
reverse_directionNo
circle_diameter_mmYes
Behavior5/5

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

Since no annotations are provided, the description fully discloses behavior: it creates a single sketch with all holes and a single extrude cut, returns feature info, and highlights that it is not parametric. It explains reverse_direction and target_bodies, and the caveat that changing hole_count requires deletion and re-run.

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 description is well-structured with a brief summary, detailed args, caveats, and an example. It is front-loaded with the main purpose. However, it is somewhat verbose due to the level of detail required for 11 parameters, but it earns its length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (11 parameters, no annotations, no output schema), the description is very complete. It explains the return value (single feature info), all parameter constraints, and provides usage context (e.g., alignment, scoping cuts with target_bodies).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema coverage, the description provides detailed parameter explanations in an Args section, including constraints (e.g., hole_count >=3, circle_diameter > hole_diameter), defaults, and when parameters are required (depth_mm when end_condition='blind'). This fully compensates for the lack of schema descriptions.

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 clearly states it adds a bolt circle by composing a sketch with N circles placed on a circle and then an extrude cut. It distinguishes itself from feature-pattern-based approaches, noting it's sketch-based and works for any center position.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use (sketch-based, any center position) and when not to use (not parametric; for parametric counts use circular_pattern). It provides a concrete example and explains parameters like angle_offset_deg for alignment.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielproxd2/solidworks-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server