Skip to main content
Glama

route_net

Connects all unconnected pads of a net with straight traces using a shortest spanning tree on a chosen copper layer. Run DRC afterward to fix routing violations.

Instructions

Connect all not-yet-connected pads of a net with straight traces (shortest spanning tree). NOT an autorouter: no obstacle avoidance. Run run_drc afterwards and fix violations by moving parts or using create_trace with waypoints.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_path": "<project_path>",
      "net": "<net>"
    },
    "name": "route_net"
  }
}

Input Schema

NameRequiredDescriptionDefault
netYesNet name or UUID
boardNoBoard name, UUID or index; default: first
layerNoCopper layer: top_cu, bot_cu, or in1_cu... (inner)top_cu
width_mmNodefault: board default
project_pathYesPath to the project's *.lpp file or its directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare mutating/idempotent/destructive flags; the description adds real behavioral context the flags cannot convey: traces are a shortest spanning tree, existing connectivity is skipped, and geometric violations are likely because there is no obstacle avoidance, with DRC as the required follow-up. It stops short of saying whether previously routed traces are replaced or what a repeat call does (relevant since idempotentHint is false).

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?

Three tight sentences ordered well: what it does, the critical limitation, then the required follow-up. Every sentence carries information, though the follow-up sentence is slightly crowded with two distinct remedies.

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 5-parameter mutation tool with full schema coverage and annotations, the description covers purpose, limitation, and the workflow it participates in. Return behavior is unstated and there is no output schema, so an agent cannot tell whether the call reports created traces or per-net success, which is the main remaining gap.

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 the schema already explains net, board, layer, width_mm, and project_path including the default-to-board-default behavior for width. The description adds no additional meaning about these parameters (e.g., whether layer affects via insertion or how width interacts with net class), so 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?

Names a specific action (connect pads of a net with straight traces) plus the underlying method (shortest spanning tree), and explicitly narrows scope with 'not-yet-connected pads'. It also distinguishes itself from router-class behavior by stating 'NOT an autorouter'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the when (unconnected pads on a net), the when-not (no obstacle avoidance, so not for routing around obstacles), and the alternatives/next steps (run_drc afterwards, fix by moving parts or use create_trace with waypoints). An agent has a complete decision path from a single short paragraph.

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