Skip to main content
Glama

Search JLCPCB parts (live stock)

jlc_search

Search the live JLCPCB/LCSC assembly catalogue by keyword and package, returning LCSC code, MPN, stock, price and part class; filter to Basic or no-fee parts to avoid Extended fees.

Instructions

Search the live JLCPCB/LCSC assembly catalogue. Returns LCSC code, MPN, package, class (Basic / Preferred Extended / Extended), live stock and unit price. Use basicOnly or noFeeOnly to avoid the per-part Extended fee; package filters e.g. "0603".

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": {
      "keyword": "<keyword>"
    },
    "name": "jlc_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNoquantity for the price column
sortNorelevance
limitNo
keywordYese.g. "10k 0603 1%", "AMS1117-3.3", "100nF 50V X7R 0402", "USB-C 16P"
packageNo
minStockNo
basicOnlyNo
noFeeOnlyNoBasic + Preferred Extended
inStockOnlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the whole burden. It partially discharges this by naming the returned fields and by framing the Basic/Preferred Extended/Extended fee-class consequence of a filter choice, which is genuinely non-obvious behavior. It says nothing about rate limits, result truncation at the `limit` cap of 50, or whether stock figures are cached — but for a read-only catalogue search the residual risk is low.

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?

Three sentences, front-loaded with the action and the payload, then the filtering advice. No filler and no repetition of the schema. A slightly cleaner split between "what you get back" and "how to filter" would earn a 5.

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

Completeness3/5

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

With no output schema, it was correct to enumerate return fields, and the description does so. With no annotations and nine parameters, though, a complete definition would state the default in-stock behavior, the 50-result cap, and what `minStock` does relative to the default `inStockOnly`. Adequate for routine calls, incomplete for an agent reasoning about result completeness.

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 only 33%, so the description must compensate for nine parameters, and it covers only some: `basicOnly`/`noFeeOnly` get a purpose (avoiding the Extended fee), `package` gets a format example, and `sort` is implicitly framed by the mention of stock and price columns. Undocumented in both places are `minStock`, `inStockOnly`, `limit`, and `qty`, which is a material gap given the low coverage.

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 description opens with a specific verb and resource: "Search the live JLCPCB/LCSC assembly catalogue," which tells an agent exactly what corpus is being queried and immediately follows with the return fields (LCSC code, MPN, package, class, stock, price). What it lacks is explicit differentiation from the sibling `jlc_part` (catalogue lookup vs. single-part detail) — the agent must infer that distinction. Strong, but not fully disambiguating.

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?

There is real conditional guidance: use `basicOnly` or `noFeeOnly` to dodge the per-part Extended fee, and use `package` for footprint filtering with a "0603" example. That is usage advice, not just field description. However, there is no statement of when to prefer this over `jlc_part` or the EasyEDA search tools, and no exclusions or prerequisites.

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