Skip to main content
Glama

search_components

Read-onlyIdempotent

Search LibrePCB library devices by name, keywords, or description to find component-plus-footprint options and retrieve device IDs and component/package names for adding parts to projects.

Instructions

Search library DEVICES (a component + a package/footprint, what add_component needs). Returns device id, component and package names.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_components"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesWords matched against name, keywords, description, e.g. 'resistor 0603', 'led red'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered by structured data. The description adds value beyond that by disclosing the return shape (device id, component and package names), which matters since there is no output schema. It does not mention result caps or pagination behavior via the limit parameter.

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, densely packed with no filler: the resource and its definition come first, the return fields second. The parenthetical gloss on 'DEVICES' is efficient and earns its place.

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 small read-only search tool with no output schema, the definition covers purpose, key term disambiguation, and return fields. The only meaningful omission is behavior of the limit parameter and any ordering of results, which keeps it from a perfect score.

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 50%: the query parameter is well documented in the schema with examples, so the description need not repeat it. The limit parameter (default 30) is undocumented in both the schema and the description, leaving a real gap the definition does not compensate for. The device clarification helps shape queries but is not param-level detail.

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 ('Search library DEVICES') and disambiguates the overloaded term device as 'a component + a package/footprint', which is genuinely useful against siblings like list_components and get_component_details. It stops short of explicitly contrasting with those siblings, so it is clear but not fully differentiating.

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 phrase 'what add_component needs' implies the workflow position of this tool (look up a device id before adding it), which is useful implied guidance. However, there is no explicit statement of when to use this versus list_components, get_device_details, or list_footprints, and no mention of preconditions.

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