search_distributors
Search enabled distributors and JLCPCB for orderable MPNs, returning stock, lifecycle, price, and datasheet links so you can select and verify BOM parts.
Instructions
The orderable parts at the enabled distributors, from their official APIs, and in the JLCPCB parts library when it is on the machine (with the C number and the library class): the part number of the source (adopt_part takes it), lifecycle state, stock, prices and datasheet URL (Mouser gives no package: read it in the datasheet). An MPN of more manufacturers gives one line for each manufacturer. A part that is obsolete or discontinued is marked NOT ORDERABLE. Use it to select the concrete MPN of the BOM, and to check that it can be ordered. Each result names its source (the terms of the distributors ask for it). The enabled distributors come from the project file or the global configuration (distributor_status). Each needs a personal API key: for a distributor with no key, the result has a note with the steps for the user. Give the note to the user. With no key at all, the result gives the search links of part_links.
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": {
"mpn": "<mpn>"
},
"name": "search_distributors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mpn | Yes | The MPN: a concrete orderable MPN, or the start of the MPNs (a base part, for example MCP1827S). | |
| path | No | A folder of the user project (default: the working folder of the server). The project file datasheet-lens.toml is in it or in a parent folder. | |
| exact | No | True: only this MPN. False: each MPN that starts with it (the concrete MPNs of a base part, up to 50). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |