Skip to main content
Glama

Validate a library

validate_library
Read-only

Identify common issues in Altium library files such as empty components, duplicate designators, and overlapping pads. Receive a list of warnings and errors to fix integrity problems.

Instructions

Validate an Altium library file for common issues. Checks for: empty components (no pads/pins), duplicate designators, invalid coordinates, zero-size primitives, overlapping pads, 3D bodies whose embedded model the library does not contain, embedded models no footprint references, and other integrity problems. Returns a list of warnings and errors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filepathYesPath to the .PcbLib or .SchLib file

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?

The annotations already indicate readOnlyHint=true and destructiveHint=false. The description adds meaningful behavioral detail by listing the categories of issues detected and stating that the tool 'returns a list of warnings and errors,' which clarifies it is purely diagnostic and non-mutating.

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?

The description is compact yet highly informative. It front-loads the main purpose, then uses a scannable list of concrete checks, and finishes with the return behavior. No unnecessary filler or repetition is present.

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 single-parameter, read-only validation tool, the description covers what it does, what it checks, and what it returns. It does not specify the exact structure of warnings and errors, but it provides enough for an agent to select and invoke the tool correctly. The absence of an output schema makes a slightly richer description of return format desirable, but not essential.

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 coverage is 100%, with the only parameter 'filepath' already described as 'Path to the .PcbLib or .SchLib file.' The description does not add anything beyond that, so the baseline of 3 applies: the schema does the work and the description does not need to compensate.

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 ('Validate'), a clear resource ('Altium library file'), and enumerates the exact checks performed. This distinguishes it from read/write/repair siblings even without naming them, because the focus on integrity checking is explicit and concrete.

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

Usage Guidelines3/5

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

The context for using the tool is implied: use it when you need to check a library for common integrity issues. However, the description does not explicitly say when not to use it, mention alternatives like repair_library or read_pcblib, or clarify that it is a diagnostic rather than a corrective tool.

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