Skip to main content
Glama

get_design_rules

Read-only

Retrieve the board's manufacturing constraints—minimum clearance, track width, via drill diameter, and pad diameter—to know valid dimensions before creating tracks or vias.

Instructions

Returns the board's design rules derived from the Default netclass: minimum clearance, minimum track width, minimum via drill diameter, and via pad diameter, all in millimeters. These constraints define the manufacturing limits for the PCB. On KiCAD 10.x, design rules are extracted from the project's Default netclass settings. Values shown as 'not configured' use KiCAD's internal defaults. Use this before creating tracks or vias to know valid minimum dimensions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

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=true, destructiveHint=false, openWorldHint=false, so the read-only nature is covered. The description adds valuable behavioral context: KiCAD 10.x extraction source, 'not configured' defaults falling back to internal defaults, and that the values represent manufacturing limits. This goes beyond the annotations and enriches understanding.

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?

Three sentences, each earning its place: the first states the core purpose and outputs, the second explains context (KiCAD version and defaults), and the third gives a usage directive. No redundant wording; front-loaded with the main action.

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?

The tool has no parameters and an output schema, so the description doesn't need to detail return types. It covers the key contextual aspects: what the rules are, where they come from on KiCAD 10.x, fallback behavior for unset values, and when to invoke the tool—making it complete for a read-only query.

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?

The tool has zero parameters and 100% schema coverage (empty schema), so parameter semantics are trivially satisfied. The description does not need to explain parameters, but it adds clarity about the output (returning specific millimeter values), which aligns with baseline 4 for a no-parameter tool.

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 opens with a specific verb 'Returns' and names the exact resource: the board's design rules derived from the Default netclass, listing the specific dimensions (clearance, track width, via drill, via pad). It clearly distinguishes itself from siblings by noting it's for reading rules, not creating tracks/vias or listing zones.

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?

Explicitly states when to use: 'Use this before creating tracks or vias to know valid minimum dimensions.' This provides a clear use case and implies the tool is a prerequisite for creation tools like create_track and create_via, giving strong contextual guidance without needing to name alternatives.

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/Amagtoto/pcb-mcp'

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