Skip to main content
Glama
ProductOfAmerica

mcp-server-kicad

flatten_hierarchy

Destructive

Flatten a hierarchical KiCad schematic into a single sheet by merging all child sheets, creating a new file without modifying the original.

Instructions

Flatten a hierarchical schematic into a single sheet.

Merges all child sheet content into one schematic with offset positions.
Creates a new file — does NOT modify the original hierarchy.

Args:
    schematic_path: Path to root .kicad_sch file. Optional; omit to use the configured default.
    output_path: Path for flattened output (defaults to *_flat.kicad_sch)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_pathNo
schematic_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations indicate destructiveHint=true and readOnly=false; the description adds crucial nuance by specifying that it creates a new file and does NOT modify the original hierarchy. It also mentions offset positioning, giving an agent accurate expectations for the output layout. This goes beyond 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 compact and front-loaded: a one-sentence summary, a brief merge explanation, a safety note, then a clear Args list. Every line earns its place with no fluff, maintaining high readability and quick comprehension.

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?

For a simple two-parameter tool with an output schema, the description covers the essential behavior, file creation side effect, and both parameters. It could mention potential overwrite behavior of output_path, but the output schema likely covers return details. Overall, the description is sufficiently complete for an agent to invoke the tool correctly.

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?

With 0% schema description coverage, the description compensates by explaining each parameter's purpose (schematic_path as the root file, output_path as the destination) and clarifies optionality and defaults. This adds meaningful context that the bare schema property names lack, making parameter usage clear.

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 a specific action ('Flatten a hierarchical schematic into a single sheet') with the resource (.kicad_sch hierarchy) and differentiates from siblings like list_schematic_sheets or add_hierarchical_sheet by the flattening intent. The verb 'flatten' precisely captures the operation, making it distinguishable from other schematic tools.

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 clear context on the operation's effect (merging child sheets, creating a new file) and the key caveat that the original is untouched. It doesn't explicitly name alternative tools, but the scope is well-defined and prerequisite-free, which makes usage clear enough for an agent without requiring exclusions.

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/ProductOfAmerica/mcp-server-kicad'

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