Skip to main content
Glama
Avinash1286

KiCAD MCP Server

by Avinash1286

Check Courtyard Overlaps

check_courtyard_overlaps
Read-onlyIdempotent

Detect courtyard overlaps between footprints and boundary violations, using virtual placements to validate component moves before applying.

Instructions

Detect courtyard overlaps between footprints and (optionally) flag courtyards that extend past the board outline. Accepts a positions dict of hypothetical placements so an AI can validate a proposed move_component / place_component before committing it. Returns overlap pairs with intersection extents (mm) and per-component boundary violations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refsNoLimit the check to these refs (default: every footprint on the board).
marginNoExtra clearance in mm added around every courtyard (default 0). Useful to enforce a manufacturing keepout wider than the symbol's declared courtyard.
positionsNoVirtual placements: map of reference designator to [x, y] or [x, y, rotation_degrees] in mm. Each listed ref is checked AS IF it were at the given coordinates. Unspecified refs use their current board position.
board_outlineNoOptional board outline bbox override. Default: derived from Edge.Cuts.
include_boundaryNoAlso flag courtyards that extend past the board outline (default true).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, and the description adds meaningful behavioral context: it returns overlap pairs with intersection extents (mm) and per-component boundary violations. It also implies non-destructive validation by mentioning 'before committing' a placement. This complements the annotations without contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three tightly written sentences. It front-loads the primary purpose in the first sentence, then explains the key use case and output. No redundant phrases or filler; every sentence contributes meaningful information.

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 output schema and rich annotations, the description covers the essential aspects: purpose, optionality, use case, and return summary. The schema documents parameter details, so the description does not need to repeat them. The tool's role in placement validation is fully conveyed.

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?

Input schema has 100% description coverage, so baseline is 3. The description adds value beyond the schema by explaining the purpose of the 'positions' parameter as a hypothetical placement for pre-commit validation. This clarifies the intended semantics of a complex nested object beyond its structural definition.

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 the tool's function: 'Detect courtyard overlaps between footprints' and optionally flag boundary violations. This specific verb+resource combination distinguishes it from sibling check tools like check_placement_clearance or check_clearance by focusing on courtyards and board outline compliance.

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

Usage Guidelines4/5

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

The description provides a clear usage context: validating hypothetical placements before committing a move_component or place_component. It explains when to use the tool via the 'positions' parameter, but does not explicitly mention alternatives or exclusions, though the context is sufficiently clear.

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/Avinash1286/KiCAD-MCP-Server-THEAVI'

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