Skip to main content
Glama

Couple differential pairs

couple_pairs
Destructive

After route_board: re-route the weakly coupled differential pairs one at a time, least coupled first. Both legs are ripped and routed alone around everything else as a pair; the new copper stays only when the pair's coupled share rises by min_gain_pct, its skew stays within max_skew_mm, KiCad counts no new open item or DRC error, and the board gains at most max_extra_vias vias. Pairs routed with the whole board lose their lanes; alone they couple. Run check_net_rules before and after.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairsNoOnly pairs with a leg matching these (default every pair under target_pct).
triesNoRouter seeds per pair; the best acceptable one is kept (default 2).
wait_sNoSeconds to wait for the job (default 55). A job still running comes back with status "running": follow it with get_board_job.
design_idYesThe design id returned by import_kicad_project or list_designs.
ml_optionsNo
target_pctNoPairs coupled below this are tried (default 70).
max_skew_mmNoLargest length mismatch kept (default: the pair's current skew, at least 1 mm).
min_gain_pctNoCoupling points a reroute must gain to be kept (default 10).
time_budget_sNoRouter budget per try (default 90).
bridge_islandsNo
max_extra_viasNoVias a kept reroute may add to the board (default 2).
total_budget_sNoStop starting pairs after this (default 1800).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, and the description richly earns that by explaining what actually happens: both legs are ripped and routed alone, and the new copper is kept only if four conditions hold (gain >= min_gain_pct, skew within max_skew_mm, no new open items or DRC errors, no more than max_extra_vias added). It also explains the mechanism/rationale ('pairs routed with the whole board lose their lanes').

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 single dense paragraph is front-loaded with the precondition 'After route_board' and every clause carries a distinct fact (mechanism, acceptance criteria, rationale, companion tool). It is information-dense rather than bloated, though the long chained sentence could be split for readability.

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 destructive 12-parameter mutation tool with no output schema, the description covers purpose, ordering, and the keep/reject criteria well enough to call it safely. It omits any mention of the returned job status/wait behavior (partially covered by the wait_s schema) and what happens when no pair meets the bar.

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?

Schema coverage is already 83%, but the description goes further by weaving min_gain_pct, max_skew_mm, max_extra_vias, and target_pct into a single acceptance-criteria narrative, clarifying how they interact rather than restating each. It adds real meaning, though undocumented params like bridge_islands and ml_options go unexplained.

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 states a precise verb+resource (re-route weakly coupled differential pairs one at a time) and a scoping rule (least coupled first), immediately distinguishing it from siblings like route_board, ripup_routing, and check_net_rules. An agent can tell what this does without inspecting the schema.

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 opening 'After route_board' gives an explicit ordering precondition, and 'Run check_net_rules before and after' names adjacent tools. It stops short of stating when NOT to run it (e.g. before routing or on non-diff nets), so it is clear context rather than full exclusion guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources