Skip to main content
Glama
PCB Parts MCP Server

PCB Parts MCP Server

by Averyy

Get Parts (BOM, Daily Snapshot)

jlc_get_parts
Read-onlyIdempotent

Fetch up to 50 JLCPCB parts at once by LCSC code or MPN from a daily catalog snapshot for BOM refreshes and batch part checks.

Instructions

Up to 50 JLCPCB parts in one call, by LCSC code or MPN, from the daily catalog snapshot (stock

= 10), database only: for BOM refreshes and checking many parts at once. For one part's live stock, prices or datasheet, use jlc_get_part(live=true). Reply: data_as_of, prices_as_of, price_tiers_as_of, counts (found, gone, not_found, error), hint when any part is gone or not found, and results in input order, each with input. An LCSC code's row has jlc_get_part's fields (prices: quantity tiers), or not_found; an MPN's row is like jlc_get_part(mpn=...): mpn, total, up to 10 results, exact, ambiguous, match info, gone_matches, or not_found with other_manufacturers. Gone parts (left the snapshot): stock null, gone, gone_since, last_stock. MPNs never match by full text: search values with jlc_search. An unusable input has error. Each part may add lifecycle, as in jlc_get_part.

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": {
      "parts": "<parts>"
    },
    "name": "jlc_get_parts"
  }
}

Input Schema

NameRequiredDescriptionDefault
partsYesUp to 50, each an LCSC code ("C7950"), an MPN ("LM358P") or {"mpn", "manufacturer"} (the maker narrows the matches; "lcsc" also works, and wins over mpn; {"mpn": "C1815"} for a part number shaped like a code). A list or a JSON array string; never comma-split.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.10.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, non-open-world), the description discloses the snapshot nature and freshness fields (data_as_of, prices_as_of), the stock >= 10 filter, the database-only constraint, and how delisted parts surface (stock null, gone, gone_since, last_stock). The "database only + daily snapshot" framing is consistent with openWorldHint=false rather than contradicting it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is well front-loaded and earns its place, but the long "Reply:" block enumerates return fields that an existing output schema already documents, which is redundant filler for the agent's decision. The compressed telegraphic style also takes effort to parse.

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?

Covers limits, alternatives, gone-part behavior, and error handling for a single-parameter batch tool, which is close to complete. The remaining gap is minor: return-value detail is repeated despite an output schema existing, while practical concerns like rate limits or batch failure granularity are only partially implied.

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 coverage is 100%, so the baseline is 3, but the description adds real semantics: results come back in input order with each row tagged by input, MPN values never match by full text, and unusable inputs yield error rather than a silent miss. The {"mpn", "manufacturer"} and lcsc-precedence rules are left to the schema, which already covers them well.

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?

States the specific verb, resource, batch size, and source ("Up to 50 JLCPCB parts in one call... from the daily catalog snapshot"), then explicitly distinguishes itself from jlc_get_part(live=true). An agent can route between batch-snapshot lookup and single-part live lookup without opening a 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?

Names the use case ("for BOM refreshes and checking many parts at once") and the alternative with the condition that selects it ("For one part's live stock, prices or datasheet, use jlc_get_part(live=true)"). It also warns that MPNs never match by full text and points to jlc_search, closing the most likely misuse path.

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