Skip to main content
Glama

lib_batch_set_params

Batch update or create component parameters in an EasyEDA library, including Description and default Designator properties, from a list of assignments.

Instructions

Batch set parameters on library components.

Each assignment sets one parameter on one component. If the parameter exists it is updated; if not it is created.

Two param_name values are SPECIAL-CASED to component properties rather than parameters:

  • "Description" sets Component.ComponentDescription.

  • "Designator" sets the component's DEFAULT designator (Component.Designator.Text, e.g. "U?" / "R?"). Use this to normalize library designator defaults in bulk (pairs with lib_get_components(with_designator=True)).

Args: assignments: List of dicts with keys: - component_name: Name of the component in the library - param_name: Parameter name (e.g., "Partnumber", "Manufacturer"), or the special "Description" / "Designator" property keys - param_value: Value to set library_path: Path to library (uses active library if not specified)

Returns: Dictionary with counts of updated, created, 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

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it says existing parameters are updated, missing ones are created, and the return value counts updated, created, and failed assignments. It does not discuss atomicity, permissions, or whether partial failures roll back, leaving some mutation risk undisclosed.

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?

The description is front-loaded with the core action and then organized into special cases, args, and returns. The structure is useful and mostly efficient, though the Returns section is somewhat redundant given the output 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 two-parameter batch mutation with an output schema, the description covers the key operational context: assignment shape, create-vs-update behavior, special property names, active-library fallback, and result counts. Missing details about failure handling or atomicity are minor given the provided output schema and otherwise strong coverage.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it does: it defines the assignments list, names the required inner keys component_name, param_name, and param_value, gives examples, and explains the special Description and Designator keys. It also clarifies that library_path is optional and defaults to the active library.

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 and resource: batch-setting parameters on library components, with one assignment per component. It also clarifies that assignments can target ordinary parameters or special-cased Description/Designator properties, making its scope distinguishable from nearby library-editing tools.

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 gives a concrete use case, normalizing library designator defaults in bulk, and explicitly pairs itself with lib_get_components(with_designator=True). It does not enumerate when not to use it or name alternatives such as single-component setters, so it falls 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.

Deploy Server

Other Tools