Skip to main content
Glama
ShamanAndrey

kicad-mcp-layer

by ShamanAndrey

lib_index

Read-onlyIdempotent

Build or refresh the KiCad library index and report its size and age. Use when automatic updates by lib_search are insufficient.

Instructions

Build or refresh the library index and report its size and age. Normally unnecessary: lib_search builds it on first use and refreshes changed libraries automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rebuildNoRe-parse every library even if unchanged.
project_pathNoA project directory or any file in it; the project's own libraries (its sym-lib-table and fp-lib-table) are included and shadow global ones.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
secondsNo
symbolsYes
built_atNo
librariesYes
footprintsYes
rebuilt_librariesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), so credit goes for added context: the tool reports index size and age, and the description discloses that the index is self-maintaining elsewhere. It does not discuss cost on large libraries or failure behavior, so it stops short of a 5.

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 sentences, zero filler: the action comes first, the crucial 'you probably don't need this' caveat second. Every clause earns its place.

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

Completeness5/5

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

For a zero-required-parameter maintenance tool with fully documented params and an output schema covering the reported size/age, the description supplies everything an agent needs to decide whether to call it at all.

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%, so rebuild and project_path are already fully documented, including the shadowing behavior of project libraries. The description adds no parameter-level meaning beyond what the schema states, so the baseline 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?

Specific verb pair (build/refresh) on a named resource (library index), plus the side effect of reporting size and age. It explicitly names the sibling lib_search and clarifies the division of labor, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit when-not to use it ('Normally unnecessary') and names the alternative (lib_search) plus the conditions under which that alternative supersedes it (build on first use, automatic refresh of changed libraries). Nothing is left to inference.

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