Skip to main content
Glama
danielproxd2

MCP_CAD

by danielproxd2

add_sketch_chamfer

Adds a 45° equal-distance chamfer to a sketch corner. Replaces the vertex where two lines meet with a third inclined line, given two points on those lines and the chamfer distance.

Instructions

Chaflán de croquis — corta una esquina del croquis con un chamfer a 45° (distancia igual en ambos lados). Reemplaza el vértice donde dos líneas se encuentran con una tercera línea inclinada.

Uso típico CSWA Tool Block: las esquinas del outline llevan chamfers como "5×45°" (= distance_mm=5). Es más limpio que dibujar la línea inclinada a mano.

[en: Sketch chamfer — cuts a sketch corner with a 45° equal-distance chamfer. Replaces the vertex where two sketch lines meet with a third inclined line. Typical for the CSWA Tool Block outline.]

Args: line1_x_mm, line1_y_mm: A point that lies ON the first line. Typically near the corner — SW picks the closest segment. line2_x_mm, line2_y_mm: A point that lies ON the second line. distance_mm: The chamfer distance from the corner along EACH line. A 45° chamfer with distance_mm=14 means each adjacent line is shortened by 14 mm and the corner is connected by a new line at 45°. z_mm: Z-coordinate of the points (default 0 — front-plane sketches).

Returns the chamfer's metadata.

Requires the sketch to be in EDIT mode (just like add_sketch_dimension). The two selected lines must be ADJACENT (share an endpoint), else SW rejects the chamfer.

Gotcha: in this binding ISketchManager.CreateChamfer is not universally reachable. If it fails, the recommended workaround is to draw the chamfer manually using two create_line calls.

Related: chamfer (3D edge chamfer, not sketch corner).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
z_mmNo
line1_x_mmYes
line1_y_mmYes
line2_x_mmYes
line2_y_mmYes
distance_mmYes
Behavior5/5

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

With no annotations, description carries full burden. Discloses behavior: replaces vertex with line, requires edit mode, adjacent lines, potential API failure, and workaround. No contradictions.

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?

Bilingual (Spanish/English) adds length, but structure is clear with sections. Could be more concise by deduplicating languages, but still well-organized.

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?

Given 6 params, no output schema, no annotations, description covers purpose, prerequisites, gotchas, workaround, and return type. Slight gap: no detail on return format, but sufficient for agent invocation.

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?

Schema coverage is 0%, but description fully explains each parameter: line points, z default, distance along each line. Adds meaningful context beyond schema titles.

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?

Clearly states it cuts a sketch corner with a 45° equal-distance chamfer, distinguishes from sibling 'chamfer' (3D edge chamfer) and 'add_sketch_fillet'.

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?

Provides explicit when-to-use (e.g., CSWA Tool Block), prerequisites (sketch in edit mode, adjacent lines), and workaround if API fails. Also notes distinction from 3D chamfer.

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