Skip to main content
Glama
Avinash1286

KiCAD MCP Server

by Avinash1286

Repair Flat Symbols

repair_flat_symbols
Destructive

Repairs flat vendor symbols that crash kicad-skip by wrapping pins and graphics in a proper sub-unit, making .kicad_sym and .kicad_sch files parseable.

Instructions

Repair "flat" vendor symbols so schematic tools can parse the file.

SnapEDA/SamacSys .kicad_sym captures often put pins and graphics directly under the top-level (symbol "NAME" ...) with no _1_1 sub-unit. KiCad and kicad-cli tolerate this, but the kicad-skip parser used by the schematic edit/inspect tools (list_schematic_components, batch_connect, ...) crashes on it — for any sheet that uses, or embeds a snapshot of, such a symbol.

This tool wraps the drawable/pin children in a proper (symbol "NAME_1_1") sub-unit via pure text insertion (formatting preserved, render-neutral). Works on standalone .kicad_sym libraries and on the embedded (lib_symbols) block of a .kicad_sch. Idempotent; already-wrapped and extends-derived symbols are skipped. Dry-run by default — files are edited in place, so keep them under version control before repairing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes.kicad_sym library or .kicad_sch schematic to repair
dryRunNoReport flat symbols without writing (default true)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior1/5

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

Description contradicts annotations: annotation idempotentHint=false, while description claims 'Idempotent'. Despite useful info about dry-run and destructive edits, the direct contradiction forces a score of 1 per rubric.

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?

Well-structured into three cohesive paragraphs: the problem, the mechanism, and operational notes. Every sentence earns its place, providing necessary context without fluff.

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 the problem, solution, supported formats, idempotency caveat, dry-run default, destructive nature, and version control advice. An output schema exists, so no need to describe return values. Very complete aside from the idempotency flag mismatch.

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 each parameter already has a meaningful description. The description adds context about file types and dry-run behavior, but these are also present in the schema descriptions, so no additional semantics are provided. Baseline 3 applies.

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?

Clearly states the tool repairs 'flat' vendor symbols, explaining the exact problem (missing _1_1 sub-unit) and the solution (wrapping children in sub-unit). It distinguishes itself from siblings by referencing specific crashing tools and file types.

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?

Provides explicit when to use: when kicad-skip parser crashes on schematics containing such symbols. Lists supported file types (.kicad_sym and .kicad_sch) and mentions dry-run default. Does not explicitly state when not to use or alternatives, but the context is strong enough.

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