normalize-pn
Normalize an IT hardware part number into its canonical form. Handles HPE (B21/001/spare), Dell (400-XXXX, DP/N), and IBM/Lenovo (FRU/CCIN) formats. Critical for deduplication and accurate lookups in the TPM market.
validate-pn
Validate a part number against known manufacturer format rules. Returns structural validity, matched format rule, and warnings. IMPORTANT: Format validation only - does not confirm the part exists.
search-parts
Search for IT hardware parts on eBay using the Browse API. Automatically normalizes the part number before searching. Requires EBAY_CLIENT_ID and EBAY_CLIENT_SECRET environment variables. Returns prices, conditions, sellers, and item URLs.
get-substitutes
Find substitute, equivalent, or cross-referenced part numbers. Queries PartsIQ database (34K+ cross-references from IQreseller) with static fallback. Covers HPE option/spare mappings, generation cross-refs, and Dell SKU/DP/N equivalents.
get-vendor-trust
Look up vendor/seller trust information from IQreseller purchase history. Returns trust tier (preferred/neutral/avoid), transaction count, total spend, and satisfaction score. Use '*' as vendor name to get summary statistics. Essential for evaluating eBay sellers before purchasing.
score-listing
Score and rank eBay listings using PartsTable's 5-factor composite scoring engine. Factors: Price (30%), Vendor Trust (25%), Distance (20%), Condition (15%), Quantity (10%). Vendor trust scores are looked up from IQreseller purchase history (435 vendors). Distance is calculated from warehouse ZIP to seller location using haversine formula. Condition signals are extracted from listing text (warranty, tested, ships today). Returns items sorted by composite score (0-100) with full factor breakdown.