Skip to main content
Glama

Finish the open nets

finish_board

Close what the router left open the way a designer does: for each open net the diagnosis names the copper boxing it in; that copper is ripped (never a poured net), the open nets are routed FIRST into the space, then the ripped nets go back around them; up to rounds rounds, each kept only if KiCad counts fewer unconnected items. Use it after route_board leaves a handful of nets open (route_board's default pipeline already runs three rounds; this adds more, or follows a single route); repair_board never moves the blockers.

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": {
      "design_id": "<design_id>"
    },
    "name": "finish_board"
  }
}

Input Schema

NameRequiredDescriptionDefault
roundsNoRip-and-reroute rounds (default 3).
wait_sNoSeconds to wait (default 55); a job still running comes back "running" for get_board_job.
reach_mmNoRadius cleared of tracks and vias around a pad with no way out (default 1.5).
design_idYesThe design id returned by import_kicad_project or list_designs.
class_viasNoRoute with the Default class's via instead of the board's smallest legal one.
ml_optionsNo
vias_in_padsNo'allow': vias may sit in pin pads (the board must be ordered with filled and capped vias).
time_budget_sNoRouter budget per routing call (default 120).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / design_id / pattern
      Removed value: -"^[A-Za-z0-9_-]{8,80}$"
    • removedInput schema / properties / ml_options / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • changedInput schema / properties / wait_s / description
      Previous value: -"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot; route_board's pipeline goes on from its last finished stage)."New value: +"Seconds to wait (default 55); a job still running comes back \"running\" for get_board_job."
  2. Changed1 schema field changed
    • removedInput schema / properties / router
      Removed value: -{
      -  "enum": [
      -    "ml",
      -    "ts"
      -  ],
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • changedInput schema / properties / wait_s / description
      Previous value: -"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot)."New value: +"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot; route_board's pipeline goes on from its last finished stage)."
  4. Changed1 schema field changed
    • changedInput schema / properties / wait_s / description
      Previous value: -"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job."New value: +"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot)."
  5. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, it discloses the actual mutation order (rip the blocking copper — never a poured net — route the open nets first, then restore the ripped nets), the trial-and-keep policy per round (kept only if KiCad counts fewer unconnected items), and the running-job behavior for get_board_job. That is substantial context the annotations don't carry, though it doesn't say what happens to the original board state if all rounds regress.

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?

It is front-loaded with the core mechanic and contains no filler, but the first sentence is a long chain of nested clauses that takes effort to parse. Every clause earns its place, yet splitting it would improve scanability.

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 an 8-parameter mutation tool with no output schema, the definition covers the workflow, the ordering guarantee, the success criterion per round, and the async handoff to get_board_job. It falls short only on what the caller receives on completion and whether the prior board revision survives a full-tool run.

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 88%, so the schema already documents rounds, wait_s, reach_mm, vias_in_pads and the others. The description adds real meaning only for `rounds` (each round must reduce KiCad's unconnected count to survive); the remaining parameters get no added semantics, so this sits at the high-coverage baseline rather than above it.

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 names a specific verb and resource — closing open nets by ripping the copper blockers, rerouting the open nets first, then returning the ripped nets — and explicitly contrasts this with route_board's default pipeline and repair_board. An agent can distinguish it from both siblings without opening any schema.

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?

It states exactly when to use it: after route_board leaves a handful of nets open, since route_board already runs three rounds and this adds more or follows a single route. It also gives an exclusion in the same breath (repair_board never moves the blockers), so the boundary between the two repair tools is explicit.

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