Skip to main content
Glama
tureruygar-glitch

kicad10-mcp

add_rectangle

Draw a graphic rectangle on a KiCad PCB by defining its top-left and bottom-right coordinates, layer, outline width, and fill status.

Instructions

Add a graphic rectangle.

Args: x_min_mm, y_min_mm: Top-left corner in mm. x_max_mm, y_max_mm: Bottom-right corner in mm. layer: Layer name. width_mm: Outline width in mm. filled: Whether the rectangle is solid-filled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layerNoF.SilkS
filledNo
width_mmNo
x_max_mmYes
x_min_mmYes
y_max_mmYes
y_min_mmYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It says nothing about state effects on the board, whether changes are undoable, required document/permission context, or failure conditions for a mutating add operation.

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?

Purpose is front-loaded in the first sentence, followed by a compact Args block with no filler. The Args-list format is slightly schema-like but every line adds semantic meaning.

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 no explanation, and parameters are covered. Still, for a mutating 7-parameter tool with zero annotation coverage, no usage context (which document must be open, relationship to other shape tools) is missing.

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 description coverage is 0%, so the description must compensate, and it does: it documents all seven parameters with units and meaning (x/y min as top-left, max as bottom-right, layer name, outline width in mm, filled solid fill). It omits the schema defaults (F.SilkS, 0.15, false), but the coordinate and width semantics are the key additions.

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 first sentence states a specific verb+resource ("Add a graphic rectangle"), so the operation is unambiguous. It does not distinguish itself from siblings like add_board_outline_rect, add_polygon, or add_line, leaving the agent to infer that this is a decorative/copper graphic rectangle rather than a board geometry primitive.

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 statement of when to use this tool versus add_board_outline_rect, add_polygon, or add_zone_rect, nor any prerequisite (e.g. an open board/document). The description lists only parameters, so all routing context is left to inference.

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