Skip to main content
Glama
SourceParts

Source Parts MCP Server

Official
by SourceParts

suggest_reroute

Suggests routing paths for disconnected nets in KiCad PCB files by running an A* pathfinder and returning track segments as S-expressions for operator review.

Instructions

Suggest routing paths for disconnected nets after rip-up.

Runs an A* pathfinder on the server and returns suggested track segments as KiCad S-expressions for operator review.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to .kicad_pcb file
netsYesList of net names to route
grid_stepNoRouting grid resolution in mm (default 0.25)
layerNoCopper layer to route on (default "F.Cu")F.Cu
widthNoTrack width in mm (default 0.25)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that it runs a server-side A* pathfinder and returns suggestions for operator review, but does not mention side effects, permissions, or performance implications.

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 concise, consisting of two short sentences without wasted words. It is front-loaded with the primary purpose.

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?

Given the presence of an output schema, the description does not need to explain return values. It covers purpose, algorithm, and output format, though it could mention prerequisites like disconnected nets.

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 description coverage is 100%, so baseline is 3. The description does not add parameter details beyond the schema, which already provides clear descriptions for each parameter.

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's action: 'Suggest routing paths for disconnected nets after rip-up.' It specifies the algorithm (A* pathfinder) and output format (KiCad S-expressions), effectively distinguishing it from sibling tools like kicad_ctrl_execute_ripup.

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?

The description implies usage after rip-up with 'after rip-up' but does not explicitly state when not to use or provide alternatives. It provides clear context for when to use the tool.

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/SourceParts/parts-mcp'

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