Skip to main content
Glama

lib_batch_rename

Rename multiple schematic library components in one call by mapping each current name to a new name, with optional library path and success/failure counts.

Instructions

Batch rename components in a schematic library.

Each assignment renames one component from old_name to new_name.

Args: assignments: List of dicts with keys: - old_name: Current name of the component in the library - new_name: New name for the component library_path: Path to library (uses active library if not specified)

Returns: Dictionary with counts of renamed and failed assignments

Input Schema

NameRequiredDescriptionDefault
assignmentsYes
library_pathNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it discloses that library_path falls back to the active library and that results report renamed vs failed counts, implying partial application. It does not say whether renames are atomic, what causes failures (collisions, missing components), or whether changes are saved immediately.

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?

Short, front-loaded with the purpose, then the per-assignment semantics, args, and return. The Args/Returns framing is efficient; the 'Each assignment renames one component' line is slightly redundant with the Args list but harmless.

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?

For a two-parameter mutation tool with no annotations and an output schema present, the description covers parameters and return shape adequately. It is thin on failure/atomicity behavior and on how it relates to the single-rename sibling, which an agent would need before choosing it.

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 0% but the description compensates well, documenting the assignments list structure (old_name/new_name keys) that the raw schema leaves as untyped additionalProperties, and explaining the optional library_path default. This adds genuinely necessary meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Batch rename components in a schematic library') with clear batch scope. It does not distinguish itself from the sibling lib_rename_component, which performs a single rename, so an agent must infer the split from the name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and the closest alternative, lib_rename_component, is never mentioned. The batch framing implies its purpose, but nothing tells the agent when to prefer this over the single-rename sibling or over lib_move_components.

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

Deploy Server

Other Tools