Skip to main content
Glama

Add tracks and vias

add_copper

Lay exact copper by hand where the routers leave a gap: tracks as polylines on one copper layer, and through vias. width_mm, diameter_mm and drill_mm default to the board's current track and via sizes. Nets must exist on the board. Nothing is checked here: run_drc afterwards, and ripup_routing takes copper back out.

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": "add_copper"
  }
}

Input Schema

NameRequiredDescriptionDefault
viasNo
tracksNo
wait_sNoSeconds to wait (default 55); a job still running comes back "running" for get_board_job.
design_idYesThe design id returned by import_kicad_project or list_designs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 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 / tracks / items / properties / net / maxLength
      Removed value: -200
    • removedInput schema / properties / tracks / items / properties / net / minLength
      Removed value: -1
    • removedInput schema / properties / tracks / items / properties / points / items / additionalItems
      Removed value: -false
    • changedInput schema / properties / tracks / items / properties / points / items / items
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]New value: +false
    • removedInput schema / properties / tracks / items / properties / points / items / maxItems
      Removed value: -2
    • removedInput schema / properties / tracks / items / properties / points / items / minItems
      Removed value: -2
    • addedInput schema / properties / tracks / items / properties / points / items / prefixItems
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / tracks / items / properties / points / maxItems
      Removed value: -500
    • removedInput schema / properties / tracks / items / properties / points / minItems
      Removed value: -2
    • removedInput schema / properties / tracks / maxItems
      Removed value: -200
    • removedInput schema / properties / vias / items / properties / net / maxLength
      Removed value: -200
    • removedInput schema / properties / vias / items / properties / net / minLength
      Removed value: -1
    • removedInput schema / properties / vias / maxItems
      Removed value: -500
    • 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
    • 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)."
  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."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)."
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so safety framing is partly covered. The description still adds real value beyond that: it discloses that nothing is validated at creation time, that a DRC pass is required afterwards, and that the operation is reversible via ripup_routing. It does not mention atomicity or what happens if some tracks in the array fail.

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?

Three tight sentences ordered by importance: what it makes, defaults and preconditions, then validation and reversibility. No filler, and the most decision-relevant clause (routers leave a gap) comes first.

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 mutation tool with nested tracks/vias arrays and no output schema, the description covers purpose, preconditions, defaults, and the DRC/undo workflow well. The one omission is what the call returns — the wait_s field hints at an async job ('running' / get_board_job) but the description never says so, which an agent would need when it gets an asynchronous response.

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 only 50%, but the description supplies the important missing meaning: width_mm, diameter_mm and drill_mm default to the board's current track and via sizes, and the net parameter requires pre-existing nets. design_id and wait_s are already documented in the schema, so the remaining gap is minor.

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?

States a specific verb and resource ('Lay exact copper by hand') and immediately scopes it to 'tracks as polylines on one copper layer, and through vias'. The framing 'where the routers leave a gap' distinguishes manual copper authoring from the autorouting siblings without ambiguity.

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 an explicit use condition ('where the routers leave a gap'), a precondition ('Nets must exist on the board'), and names the follow-up and undo paths ('run_drc afterwards', 'ripup_routing takes copper back out'). An agent knows both when to call this and what to call next.

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