Skip to main content
Glama

Calligraphy EDA MCP Server

Analyze KiCad PCB Layout

analyze_kicad_pcb
Read-onlyIdempotent

Parse and analyze a KiCad .kicad_pcb board locally (from pcb_text or project_path). Extracts copper layer stackup, board outline dimensions (mm), footprint count, SMD vs THT pad counts, fine-pitch (<=0.50mm) pad count, net count, routed trace/arc segment statistics, and via count.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_kicad_pcb"
  }
}

Input Schema

NameRequiredDescriptionDefault
pcb_textNoRaw `.kicad_pcb` S-expression text
project_pathNoLocal filesystem path to a `.kicad_pcb` file

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/ idempotent/ non-destructive/ closed-world, so the safety profile is covered. The description adds value by enumerating exactly what the analysis computes (stackup, outline mm, pad/via/net counts), which is the key behavioral disclosure since there is no output schema; it does not cover failure behavior on malformed input.

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 dense sentence with the action front-loaded and the extracted metrics trailing; every clause is informative. The long comma-separated metric list is slightly heavy but earns its space given the absence of an output schema.

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

Completeness4/5

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

With no output schema, the description correctly compensates by listing the returned metrics, and the safety semantics are fully covered by annotations. The remaining gap is the zero-required-parameter situation: it does not say what happens if neither `pcb_text` nor `project_path` is supplied.

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 coverage is 100% and both parameters have their own descriptions, so the baseline applies. The description only echoes that input can come from either source and never clarifies precedence or behavior when both are supplied or neither is provided (both are optional).

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?

States a specific verb+resource: "Parse and analyze a KiCad `.kicad_pcb` board locally". The file-format qualifier implicitly separates it from format-specific siblings like analyze_specctra_dsn, and the enumerated metrics make the scope concrete, though no sibling is named explicitly.

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?

Gives two input modes (`pcb_text` or `project_path`) and the word "locally" implies no network/cloud needed, but there is no explicit when-to-use versus alternatives (e.g., when to use this over an audit or impedance tool) and no exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources