Skip to main content
Glama

Update a component in place

update_component
Destructive

Replace a component's footprint or symbol in an Altium library in place, preserving its position. Preview changes with dry-run before modifying the file.

Instructions

Update a component in-place within an Altium library file, preserving its position. For PcbLib, provide a footprint object. For SchLib, provide a symbol object. The component is matched by name. Use dry_run=true to preview changes without modifying.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolNoFor SchLib: the symbol to store, in the shape write_schlib takes per symbols entry
dry_runNoIf true, show what would be updated without actually modifying the file
filepathYesPath to the .PcbLib or .SchLib file
footprintNoFor PcbLib: the footprint to store, in the shape write_pcblib takes per footprints entry
component_nameYesName of the component to update (must exist in library)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, so the agent knows the tool mutates. The description adds non-obvious behavior: the update preserves position, matching is by name rather than by unique ID, and dry_run=true enables a no-write preview. It stops short of specifying whether fields omitted from the provided object are wiped or retained, but the position-preservation and match-by-name disclosures go beyond the annotation payload.

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?

Four sentences and roughly fifty words carry the entire operative contract: action, scope, per-library payload selection, matching key, and preview mechanism. It is front-loaded with the action and contains no redundant restatement of the title or schema.

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 destructive 5-parameter tool with two deeply nested payload schemas and no output schema, the description covers the two decisions that determine a correct call: which object to pass per library type and how to preview without committing. It leaves edge cases unstated (how library type is determined, behavior when both symbol and footprint are supplied or neither), but an agent following the read-modify-write workflow has what it needs.

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 description coverage is 100%, so the baseline is met by the schema itself. The description adds cross-parameter semantics the schema cannot express: footprint applies only to PcbLib files, symbol only to SchLib files, component_name is the match key, and dry_run gates the write. This conditional linkage is genuinely additive.

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 states a specific action ('Update a component in-place within an Altium library file'), a clear resource (a component in an Altium library file), and explicit scope ('preserving its position', 'matched by name'). The 'in-place' qualifier distinguishes it from sibling whole-library writers such as write_pcblib/write_schlib, and the object-selection sentence anchors which payload each library type expects.

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?

The description gives concrete invocation guidance: 'For PcbLib, provide a footprint object. For SchLib, provide a symbol object', plus the safety path 'Use dry_run=true to preview changes without modifying'. It does not explicitly name alternatives or when-not-to-use cases (e.g., vs update_pad/update_primitive or batch_update), so the differentiation 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.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/embedded-society/altium-designer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server