Skip to main content
Glama

Rename a component

rename_component
Destructive

Rename a component in an Altium library file while preserving its primitives and properties. This atomic operation offers a more efficient alternative to copy and delete for simple name changes.

Instructions

Rename a component within an Altium library file. This is an atomic operation that changes the component's name while preserving all primitives and properties. More efficient than copy + delete for simple renames.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoIf true, validate the operation without modifying the file. Default: false
filepathYesPath to the Altium library file (.PcbLib or .SchLib)
new_nameYesNew name for the component
old_nameYesCurrent name of the component to rename

Schema Changelog

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

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Below the destructiveHint=true and readOnlyHint=false annotations, the description adds meaningful context: the operation is atomic, and it preserves all primitives and properties while changing only the name. This goes beyond the flat 'destructive' annotation and reassures the agent about scope of mutation.

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?

Two front-loaded sentences earn their place: the first states the action and scope; the second adds atomicity/preservation guarantees and a usage comparison. Nothing is repetitive or extraneous.

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 mutation tool with destructiveHint=true and no output schema, the definition covers the core call semantics: what changes, what is preserved, and the safer dry-run validate path exists in the schema. A minor gap is not disclosing failure cases (e.g., old_name not found or new_name colliding), but these are not required for correct invocation.

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?

Schema description coverage is 100% — the input schema fully documents filepath, old_name, new_name, and dry_run. The description introduces no additional parameter semantics beyond what the schema already provides, so the baseline of 3 applies.

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 verb ('Rename'), a specific resource ('a component within an Altium library file'), and the file scope (.PcbLib/.SchLib implied). It also differentiates itself from the copy+delete workflow, making it distinguishable from the 30+ sibling tools without opening 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 Guidelines4/5

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

The description explicitly says 'More efficient than copy + delete for simple renames,' which routes the agent away from a close sibling workflow toward this tool. However, it does not address adjacent alternatives like bulk_rename or update_component, so the guidance is clear but not a complete when-to-use/when-not-to-use map.

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