Skip to main content
Glama

Manage symbol footprint links

manage_schlib_footprints
Destructive

List, add, or remove PCB footprint links for one symbol in a .SchLib, with automatic timestamped backups before each save. Links reference .PcbLib footprints without modifying the .PcbLib.

Instructions

Manage the footprint links (PCB models) of one symbol in a .SchLib: list them, add one, or remove one. A link names a .PcbLib footprint; add refuses a name already linked and remove refuses one that is not (names match without regard to case), and neither touches the .PcbLib itself. Give library_path on add when Altium should resolve and preview the footprint from a specific library; omit it to link by name only. Every change backs the library up to a timestamped .bak beside it (the five newest are kept, and the first since the server started) before saving. Use manage_schlib_parameters for parameters such as Value, get_component or read_schlib to see the links together with the rest of the symbol, and update_component to rewrite a symbol wholesale.

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": {
      "filepath": "<filepath>",
      "component_name": "<component_name>",
      "operation": "<operation>"
    },
    "name": "manage_schlib_footprints"
  }
}

Input Schema

NameRequiredDescriptionDefault
filepathYesPath to the Altium SchLib file
operationYesOperation to perform: list (all footprints), add (new footprint link), remove (delete footprint link)
descriptionNoFootprint description (optional for add). Keep to 256 characters if the library will be imported into an Altium 365 workspace — that importer refuses longer ones; a longer description is written and reported as a validation warning.
library_pathNoOptional (add): absolute path to the .PcbLib containing the footprint, written as ModelDatafile0 so Altium can resolve and preview the model. Omit to link by name only (requires the library to be installed/in the project, else 'footprint not found').
component_nameYesName of the symbol to manage footprints for
footprint_nameNoFootprint name (required for add, remove)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds real behavioral context beyond them: case-insensitive duplicate refusal rules, that the .PcbLib itself is never touched, and the timestamped .bak backup with its five-newest-plus-first retention policy. The only gap is that it doesn't describe what the list operation returns.

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-loads the core verb/resource in the first sentence and keeps the backup and alternative-tool notes compact. It is dense but nearly every clause earns its place; the backup retention detail is slightly over-elaborate for the selection decision.

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?

Covers the mutation semantics, backup safety, and routing to siblings, which is most of what an agent needs. With no output schema, it does not describe the shape of the list result, leaving that as the one notable 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 baseline is 3, but the description adds meaning the schema lacks: case-insensitive name matching for add/remove, and the library_path resolution/preview behavior (omit → name-only link, requiring an installed library or 'footprint not found').

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 set (list/add/remove) on a specific resource (footprint links of one symbol in a .SchLib) and even clarifies what a link is (.PcbLib footprint reference). An agent can distinguish it from manage_schlib_parameters or update_component without reading 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 Guidelines5/5

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

Explicitly names the alternative tools and the conditions that select them: manage_schlib_parameters for params like Value, get_component/read_schlib to view links with the rest of the symbol, update_component for wholesale rewrites. It also states when to supply library_path versus omit it.

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