Skip to main content
Glama

Add your own footprint

add_custom_footprint

Give the design a footprint of your own: a KiCad .kicad_mod (the file's text) for a package KiCad's libraries lack. It joins the design's "custom" footprint library and is used as "custom:": pass that to create_custom_symbol (footprint=) or name it in the SKiDL script's footprint=; the board builder loads it like a library footprint and the KiCad project download carries it. The pads must be numbered like the pins. The CLI: koppar footprint <design> part.kicad_mod.

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>",
      "kicad_mod": "<kicad_mod>"
    },
    "name": "add_custom_footprint"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe footprint name (default: the name inside the file).
design_idYesThe design id returned by create_design or list_designs.
kicad_modYesThe .kicad_mod file, as text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 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 / kicad_mod / maxLength
      Removed value: -1000000
    • removedInput schema / properties / kicad_mod / minLength
      Removed value: -20
    • removedInput schema / properties / name / maxLength
      Removed value: -100
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only say this is a non-read-only, non-destructive local write; the description adds real context beyond that: the footprint joins a 'custom' library, is referenced as 'custom:<name>', is loaded by the board builder like a library footprint, and is carried in the KiCad project download. It also surfaces a correctness constraint not in the schema ('The pads must be numbered like the pins'). It does not state what happens on a name collision or whether re-adding overwrites, which keeps it below a 5.

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?

Purpose is front-loaded in the first clause, followed by the naming convention, the downstream usage, and the pad-numbering constraint — each sentence carries distinct information. The trailing CLI invocation is useful but sits at the end where it is least load-bearing for an agent.

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 three-parameter local write with no output schema, the definition covers input format, resulting library membership, downstream consumption, and a validation constraint on pad numbering. What remains unaddressed is failure/overwrite behavior and any confirmation of what the call returns, which matters for a mutation but is a modest gap.

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 100%, so the baseline is 3, but the description adds meaning the schema cannot: how the footprint name is consumed downstream as 'custom:<name>' and where to pass it. The default-name behavior is already documented in the schema, so that part earns no extra credit.

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 ('Give the design a footprint of your own') and immediately pins down the input format: a KiCad .kicad_mod file's text. It clearly distinguishes this from search_kicad_footprint (KiCad's own libraries) and from create_custom_symbol by naming the package-type gap it fills.

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?

Explicitly scopes use to 'a package KiCad's libraries lack', which tells the agent when not to reach for a library footprint, and it explains the downstream handoff ('pass that to create_custom_symbol (footprint=) or name it in the SKiDL script'). It stops short of naming the library-search sibling as the preferred alternative, so the exclusion is implied rather than stated.

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