Skip to main content
Glama

search_distributors

Search enabled distributor APIs for orderable parts matching an MPN or base part, with lifecycle state, stock, prices, package and datasheet URL, to pick concrete BOM MPNs and confirm they can be ordered.

Instructions

The orderable parts at the enabled distributors, from their official APIs: lifecycle state, stock, prices, package and datasheet URL. 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.

Input Schema

NameRequiredDescriptionDefault
mpnYesThe MPN: a concrete orderable MPN, or the start of the MPNs (a base part, for example MCP1827S).
pathNoA 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.
exactNoTrue: only this MPN. False: each MPN that starts with it (the concrete MPNs of a base part, up to 50).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the NOT ORDERABLE marking of obsolete parts, the per-result source attribution, the requirement of a personal API key per distributor, the note-with-steps behavior, and the up-to-50 result cap. It does not mention rate limits or failure modes for a distributor whose API errors out.

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?

Front-loaded with the outcome (what a result contains), then moves to eligibility, key requirements, and fallbacks — a sensible order. It is somewhat long and the hard line breaks plus the imperative 'Give the note to the user' make it read like a handoff memo rather than a definition, but no sentence is pure filler.

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

Completeness5/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 formatting needn't be restated; within that constraint the description covers the prerequisites (keys, config source), the degradation path (notes, then part_links), and the result semantics an agent needs to act on the output correctly.

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 already 100%, so the baseline is 3; the description adds meaning by explaining that mpn may be a base part whose concrete MPNs are enumerated, and that distributor enablement is driven by the project file or global configuration. That is genuine context beyond the field descriptions.

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 a specific verb and resource (search orderable parts at enabled distributors) and enumerates exactly what each result carries: lifecycle state, stock, prices, package, datasheet URL. An agent can tell this apart from part_links (link fallback) and get_ordering_codes without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete jobs to use it for (selecting the concrete MPN of the BOM, checking orderability) and spells out the fallback path when no API keys exist. It does not explicitly contrast with get_ordering_codes or project_availability, which is the one missing routing hint.

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