Skip to main content
Glama

Swap footprints

swap_footprint

Replace footprints in place with another footprint from a library in the project's fp-lib-table (library:name): the reference, value, position, rotation (or rot_deg), side, lock and schematic link stay, and nets move pad by pad. pad_map maps a NEW pad number to the OLD pad whose net it takes, for packages numbered differently. The schematic symbols' Footprint fields are updated too. Reports new pads left without a net and old nets left behind.

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>",
      "swaps": "<swaps>"
    },
    "name": "swap_footprint"
  }
}

Input Schema

NameRequiredDescriptionDefault
swapsYes
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. Changed10 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 / swaps / items / properties / pad_map / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / swaps / items / properties / refs / items / maxLength
      Removed value: -40
    • removedInput schema / properties / swaps / items / properties / refs / items / minLength
      Removed value: -1
    • removedInput schema / properties / swaps / items / properties / refs / maxItems
      Removed value: -500
    • removedInput schema / properties / swaps / items / properties / refs / minItems
      Removed value: -1
    • removedInput schema / properties / swaps / maxItems
      Removed value: -100
    • removedInput schema / properties / swaps / minItems
      Removed value: -1
    • 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

A3.8/5.0
Behavior4/5

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

Annotations only give the coarse profile (readOnly=false, destructive=false, openWorld=false), and the description goes well beyond that: it discloses the side effect on schematic symbol Footprint fields, the pad-by-pad net migration, and the reporting of pads left without nets and nets left behind. That is exactly the pre-call risk context an agent needs for a mutation tool; only the async/job behavior is left unstated.

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?

Front-loaded with the verb and resource, then structured as preservation semantics, pad_map semantics, side effects, and reporting. Dense but nearly every clause earns its place; the parenthetical '(or rot_deg)' and stacked preservation list make it slightly heavy to scan.

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 3-parameter mutation tool with no output schema, the description covers inputs, what is mutated, side effects, and the shape of the report, which is close to complete. The one gap is that it never mentions the job/wait_s polling model that the schema references via get_board_job.

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 67% and the undocumented parts are the nested swap fields, which the description carries: pad_map direction is spelled out (NEW pad number -> OLD pad whose net it takes), footprint format matches the schema pattern (library:name), and rot_deg is called out as the rotation input. refs is only implied by 'the reference ... stays', so it is not fully covered.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Replace footprints in place with another footprint from a library in the project's fp-lib-table') and immediately pins down what is preserved (reference, value, position, rotation, side, lock, schematic link). The 'in place' framing implicitly separates it from placement tools like place_footprints, but no sibling is named, so differentiation is inferred rather than explicit.

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

Usage Guidelines3/5

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

Usage is implied by the operation itself (retrofit a different package onto an already-placed component) and by the pad_map note about packages numbered differently. There is no explicit when-to-use/when-not-to-use statement and no alternative tool named for the case where the footprint isn't in the project fp-lib-table.

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