Skip to main content
Glama
Avinash1286

KiCAD MCP Server

by Avinash1286

Export Sch Svg

export_sch_svg
Destructive

Exports a KiCad schematic to SVG files, one per page, into a specified output directory. Supports theme, black-and-white, drawing sheet, font, and page options via kicad-cli.

Instructions

Export a schematic to SVG via kicad-cli (sch export svg), one SVG per page into a directory. Exposes drawing-sheet override, theme, black-and-white, exclude-drawing-sheet, default-font, no-background-color, and page selection. schematicPath is REQUIRED.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pagesNoComma list of page numbers to print (blank = all pages)
themeNoColor theme to use (default: schematic settings)
defineVarNoProject variable overrides as 'KEY=VALUE' strings
outputDirYesOutput directory for the SVG files
defaultFontNoDefault font name
drawingSheetNoPath to a drawing sheet override
blackAndWhiteNoBlack and white only
schematicPathYesPath to the .kicad_sch (required)
noBackgroundColorNoAvoid setting a background color (regardless of theme)
excludeDrawingSheetNoNo drawing sheet

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

The annotations indicate destructiveHint=true, but the description does not explain what destructive behavior occurs (e.g., overwriting files, creating directories). It adds only basic context about writing one SVG per page into a directory, but fails to disclose the full side effects or permission needs.

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?

The description is concise and front-loaded with the main purpose, followed by a compact list of options. The only slight issue is the incomplete required-note sentence, making it not perfectly accurate but still overall efficient.

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?

The description covers core behavior (export to SVG, one per page, supported options) and benefits from an existing output schema. However, it does not clarify output directory handling, potential overwrite behavior, or address the destructive annotation, leaving gaps for an agent invoking the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already provides 100% field descriptions, so the baseline is 3. The description adds minimal value by listing option names but also misleadingly highlights 'schematicPath is REQUIRED' while omitting that outputDir is also required, potentially causing confusion about required parameters.

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 exports a schematic to SVG via kicad-cli, with specific behavior (one SVG per page into a directory). It distinguishes from siblings like export_sch_pdf by specifying the SVG format and CLI-based approach.

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?

The description implies usage for CLI-based SVG export and lists available options, but it does not explicitly state when to use this tool over alternatives like export_sch_pdf or export_schematic_svg, nor does it mention exclusions or prerequisites beyond the required parameter.

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