Skip to main content
Glama

design_snapshot_inventory

Scan .SchLib files and return an inventory of components, with optional name filtering and per-library limits to keep output within token budgets.

Instructions

Open a list of SchLib files and return what components live in them.

NDA scope: only pass paths to the user's own neutral standard libraries. Do NOT pass project-local library paths from another client engagement, design knowledge cannot cross NDA boundaries.

Large libraries (passives/connectors can hold hundreds of parts) easily exceed the tool-output token budget, so the RETURNED set is filtered and capped. The FULL inventory is always cached to <workspace>/inventory.json for the dashboard regardless of these limits.

Args: library_paths: Absolute paths to .SchLib files to scan. name_filter: Case-insensitive substring; keep only components whose lib_ref or description contains it (e.g. "10k", "NE555"). Empty = no filter. limit_per_library: Cap components returned per library (default 60; 0 = unlimited). Each library reports total and returned so you know if it was capped. include_descriptions: Drop the (often long) description field from the returned rows to save tokens. Default True.

Returns: Inventory dict: {"libraries": [{"path", "total", "returned", "components": [...]}]}. Each component carries lib_ref, designator_prefix, pin_count, description (unless suppressed), and footprint when available.

Input Schema

NameRequiredDescriptionDefault
name_filterNo
library_pathsYes
limit_per_libraryNo
include_descriptionsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses that results are filtered and capped due to token budget, that the returned per-library total/returned reveals truncation, and that the full inventory is always written to <workspace>/inventory.json as a side effect. That side-effect disclosure is exactly the kind of context annotations would otherwise have to provide.

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?

Front-loaded purpose sentence, then the NDA constraint, then the truncation/caching behavior, then Args and Returns in a predictable docstring layout. Nothing is decorative; each block maps to something the agent needs before calling.

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 four-parameter read tool with no annotations, the description covers purpose, scope restriction, truncation semantics, caching side effect, parameter meaning and return shape. An output schema exists so the Returns block is bonus rather than a gap-filler.

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 description coverage is 0%, so the description must compensate, and it documents all four parameters with defaults, units and worked examples ("10k", "NE555"; 0 = unlimited). The one weak spot is include_descriptions, whose wording ('Drop the ... description field ... Default True') reads ambiguously against the parameter name, leaving a small chance of misinterpreting the boolean polarity.

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?

The opening line states a specific verb and resource: open SchLib files and return the components inside them, which is clearly distinct from the active-library lib_* tools. It stops short of naming a sibling (e.g. lib_get_components) to distinguish which inventory path to take, so it is clear but not maximally differentiating.

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?

There is an explicit when-not constraint with a rationale: do not pass project-local library paths from another client engagement because design knowledge cannot cross NDA boundaries. However, no alternative tool is named for the active-library case (lib_get_components, lib_search), so the agent must infer the routing itself.

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