Skip to main content
Glama

Batch-update a library

batch_update
Destructive

Apply batch edits across an Altium library: update track widths, rename layers, or change component parameters. Preview with dry_run before modifying the file.

Instructions

Perform one batch operation across all components in an Altium library file. PcbLib: 'update_track_width' (change every track of from_width to to_width, within tolerance) and 'rename_layer' (move every primitive from from_layer to to_layer). SchLib: 'update_parameters' (set parameter values across symbols). Use dry_run=true to preview changes without modifying the file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoIf true, show what would be updated without actually modifying the file
filepathYesPath to the Altium library file (.PcbLib or .SchLib)
operationYesThe batch operation to perform. PcbLib: update_track_width, rename_layer. SchLib: update_parameters.
parametersYesOperation-specific parameters

Schema Changelog

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

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already say destructiveHint=true, but the description adds meaningful details about the actual mutations (changetrack width, move layers, set parameters) and how to avoid them (dry_run). This extends beyond the bare annotation and helps the agent naturally understand the file modification behavior.

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?

Three sentences, clearly front-loaded with the main purpose, followed by operation-to-file-type mapping and a dry_run tip. No fluff. Slightly below the ideal 5 because of the long list of operation examples embedded in a single sentence, but still compact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is adequate for parameter coverage and the destructive nature is inferrable, but it does not discuss what the operation returns (e.g., a summary or count of changes) and does not state prerequisites for PcbLib vs SchLib files beyond specifying which operations apply. For a destructive update tool this leaves some possible gaps for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already describes all parameters with 100% description coverage, so the description adds little new parameter-specific information beyond some examples (e.g., layer names). That matches the baseline of 3 for already-complete schema coverage.

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 intent ('Perform one batch operation across all components in an Altium library file') and enumerates the three distinct operations per file type. It clearly differentiates this from sibling tools like update_component and bulk_rename because it is explicitly batch-oriented.

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?

It provides clear context: batch operations across all components, with examples and a concrete dry_run usage to preview changes. It does not explicitly list exclusions or name alternative tools for single-component updates, so it stops slightly short of full when/when-not guidance.

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