Skip to main content
Glama
PCB Parts MCP Server

PCB Parts MCP Server

by Averyy

Recorded Stock History

jlc_stock_history
Read-onlyIdempotent

Retrieve recorded low-stock events for one or more LCSC part codes over a day window, with per-part summaries, recent events, and notes on suspect stock gaps.

Instructions

Recorded low-stock events, newest first: one code gets at most 100; a list gives one reply with a per-part summary and the newest 10 events each, notes once. more_events flags more. Gone is missing from a scrape, not a confirmed stockout; suspect gaps are labelled. Includes the window, recording limits and current_stock from the catalog snapshot (null, with gone_since, for a part that left it).

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": {
      "lcsc": "<lcsc>"
    },
    "name": "jlc_stock_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo1-366 calendar days ending on the newest recorded date (default 180).
lcscYesOne LCSC C-code (e.g. C8314) or a list of up to 50; ignores case and surrounding spaces, de-duplicates lists. Also accepts a JSON array string; never comma-split.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.10.0
    • addedInput schema / properties / lcsc / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / lcsc / description
      Previous value: -"One LCSC C-code, e.g. C8314; ignores case and surrounding spaces."New value: +"One LCSC C-code (e.g. C8314) or a list of up to 50; ignores case and surrounding\nspaces, de-duplicates lists. Also accepts a JSON array string; never comma-split."
    • removedInput schema / properties / lcsc / type
      Removed value: -"string"
  2. Addedv0.9.1

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, closed-world safety, and the description adds substantial behavior beyond them: a 100-event cap per single code, a per-part summary plus newest 10 events for a list, a more_events paging flag, and the 'Includes the window, recording limits and current_stock from the catalog snapshot' payload note. It also discloses the key epistemic caveat that 'gone' means missing from a scrape, not a confirmed stockout, and that suspect gaps are labelled — exactly the kind of context annotations cannot convey.

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?

It is short and mostly front-loaded, leading with what is returned and the ordering before edge-case semantics. The telegraphic phrasing ('Gone is missing from a scrape', 'more_events flags more') is dense to the point of mild ambiguity, costing a point.

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?

An output schema exists, so return-shape detail is unnecessary, and the description instead covers the semantics an agent genuinely needs: result caps, paging flag, window and snapshot provenance, and the null/gone_since case. The remaining gap is explicit routing against jlc_stock_check, which is the main thing an agent must decide before invoking it.

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 the schema already documents the lcsc code/list form and the days window, giving a baseline of 3. The description adds marginal meaning via the per-code result cap and the default window behavior, but it does not mention the list cap of 50 or the anyOf/JSON-array-string acceptance, so it does not materially extend parameter semantics.

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 states the resource and ordering clearly: 'Recorded low-stock events, newest first', and explains that these come from scrapes rather than confirmed stockouts. It is clear what data is returned, though the verb is implicit ('Recorded ... events') and there is no explicit named contrast with jlc_stock_check.

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?

Usage is implied rather than stated: a reader infers this is for historical/recorded low-stock events versus a live check, and that per-part history is the use case. There is no explicit 'use this when / use X instead' guidance or prerequisite statement, leaving the agent to infer the alternative from sibling names.

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