Skip to main content
Glama

pcb_bevel_polygon_corners

Bevels the corners of a copper polygon pour by cutting each sharp vertex back along its edges, then repours the polygon. Only straight-outline polygons are modified; arc segments are left untouched.

Instructions

Chamfer the corners of a copper polygon pour.

Replaces each sharp vertex with two points set back along its edges by bevel_mils (auto-clamped so neighbouring bevels never overlap), giving every corner a straight 45-style cut. Only straight-outline polygons are handled, a polygon containing arc segments is left untouched. The polygon is repoured after the edit.

Args: index: Which polygon to bevel (0-based, in board iteration order). net_name: If set, count only polygons on this net when applying index. bevel_mils: Set-back distance per edge (default 25).

Returns: {"beveled", "index", "orig_vertices", "new_vertices", "bevel_mils"}, or an error code (NOT_FOUND / BAD_POLYGON / HAS_ARC).

Input Schema

NameRequiredDescriptionDefault
indexNo
net_nameNo
bevel_milsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.3/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 auto-clamping of bevels so neighbours don't overlap, the 45-style cut result, that arcs are skipped, that the polygon is repoured after the edit, and the error codes. It stops short of stating reversibility or permission requirements.

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?

Front-loaded with purpose, then constraints, then Args/Returns in a clean docstring layout. Slightly long, but every sentence conveys operative information and nothing is redundant filler.

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?

Covers purpose, applicability limits, the effect on the polygon, parameter semantics, and error outcomes. An output schema exists, so the Returns block is a bonus rather than a necessity; nothing an agent needs to call this correctly is missing.

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%, so the description must compensate, and it does: index is explained as 0-based in board iteration order, net_name as a filter that re-scopes which polygons index counts over, and bevel_mils as the per-edge set-back with default 25. The index/net_name interaction is the key non-obvious semantic and it is made explicit.

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?

States a specific verb and resource ('Chamfer the corners of a copper polygon pour') and immediately clarifies the mechanism (replace each sharp vertex with two points). It is readily distinguishable from siblings such as pcb_modify_polygon or pcb_repour_polygons.

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?

The description gives an applicability constraint (only straight-outline polygons; arc-containing polygons are left untouched) and error codes, but it never says when to choose this over pcb_modify_polygon or pcb_repour_polygons, nor any prerequisites. Usage is implied rather than routed.

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

Deploy Server

Other Tools