MCP server for querying DigiKey electronic parts inventory with AI-driven filter refinement
The Parts Finder server has a single tool (queryDigikey) with significant quality gaps. The tool name is descriptive but uses 'Query' (less conventional than verb-noun like 'search_' or 'query_parts_by_keyword'). The description is minimal (17 chars) and does not explain WHAT the tool returns, WHEN to use it, or any prerequisites like DigiKey API credentials. The input schema has only one parameter ('query' as a string) with a basic description; there is no documented output schema, no error handling guidance, and no indication of what fields the response contains. The implementation internally uses an LLM (Google Gemini) to refine queries and iteratively apply filters, but none of this behavior is described to the agent, it appears as a black box. The tool calls external APIs (DigiKey OAuth, search endpoint) with credentials injected from environment, which is correct, but the response format (JSON stringified DigiKey API result) is not documented. This forces the agent to guess at the structure of returned parts data. The rubric baseline for A+ tools requires 100% of params to have descriptions (✓ query param has one), but critically, output schemas must be documented (✗ missing), descriptions should be 50 - 200 chars (✗ 17 chars), and error recovery guidance is absent (✗). The tool operates in a narrow domain (parts search) without batch operations, pagination controls, or result limits visible in the interface.
Query Digikey for parts
Tool description is only 17 characters ('Query Digikey for parts'), far below the 50-200 char baseline for A+ tools. It does not explain what data is returned, when to call it, or what happens on error.
Output schema is completely undocumented. The tool returns JSON stringified DigiKey API response (prevResults.at(-1)?.response), but the agent has no visibility into the structure of 'response' (what fields exist, their types, how to extract part details). This violates the core requirement that 'LLMs need to know what fields to expect so they can plan downstream tool calls.'
No result pagination or limit controls exposed in the tool interface. The implementation iterates up to 8 times applying filters, but the agent has no way to control max results, request only the top N parts, or navigate through large result sets. Returning all results can exhaust context windows.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 30 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 35 | - | v1 |
No error handling or recovery guidance. If DigiKey API authentication fails, network times out, or the search returns no results, the tool throws an Error() with a message, but does not classify the error as retryable/user-fixable/fatal or suggest next steps (e.g., 'Verify DIGIKEY_CLIENT_ID and DIGIKEY_CLIENT_SECRET are set').
Internal LLM-based query refinement (using Google Gemini to simplify input and iteratively apply filters) is not documented in the tool description. The agent does not know that its single 'query' parameter will be rewritten by an internal LLM, making the tool behavior opaque and unpredictable.
No documentation of response fields or structure. Based on the code (searchDigikey returns KeywordResponseSchema), the response likely contains 'Products', 'FilterOptions', and pagination data, but none of this is visible in the tool definition. The agent must inspect the raw JSON output to understand what data is available.
No indication of what credentials are required or how they are configured. The tool requires DIGIKEY_CLIENT_ID and DIGIKEY_CLIENT_SECRET environment variables, but the description does not mention this dependency or how to set them up.