Skip to main content
Glama

Sketch Polygon

sketch_polygon

Draws a regular polygon with a set number of sides, centered at specified coordinates with a given radius in millimeters, for quick hexagon or pentagon sketches in SolidWorks parts.

Instructions

Draws a regular polygon (e.g. hexagon, pentagon) with N sides centered at (xc, yc) with radius in mm.

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": {
      "xc": "<xc>",
      "yc": "<yc>",
      "radius": "<radius>"
    },
    "name": "sketch_polygon"
  }
}

Input Schema

NameRequiredDescriptionDefault
xcYes
ycYes
sidesNo
radiusYes
inscribedNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does not state the required sketch/editing context, whether the operation mutates the active sketch, what happens if no sketch is open, or how the radius interacts with the inscribed flag — all material for a geometry-creation 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?

A single front-loaded sentence with no filler; the core geometry is stated first. It is slightly cramped — the '(xc, yc)' and 'with radius in mm' clauses stack awkwardly — but nothing is wasted.

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

Completeness3/5

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

An output schema exists, so return values need not be described. Still, for a 5-parameter geometry-creation tool with zero schema coverage, the definition omits the sketch prerequisite and the meaning of the inscribed flag, leaving real gaps an agent would hit at call time.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It does explain xc/yc as the center and radius as being in mm, and implicitly covers 'N sides', but the 'inscribed' boolean (the key ambiguity: radius to vertices vs. to edge midpoints) is never mentioned, and defaults are left to the schema.

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 uses a specific verb and resource ('Draws a regular polygon') and names concrete examples (hexagon, pentagon) with the geometric placement model, which clearly distinguishes it from siblings like sketch_circle or sketch_rectangle. It stops short of explicitly naming an alternative, but the resource is unambiguous.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says this must run inside an existing sketch (e.g. after create_sketch and before exit_sketch), nor when to prefer a polygon over drawing lines. The agent must infer the sketch-context prerequisite from sibling names alone.

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