get_supplier_info
Retrieve supplier contact details, lead times, and minimum order requirements to manage art supply procurement and maintain business operations.
Instructions
Get detailed supplier information including contact details, lead times, and minimum order requirements.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| supplierName | Yes | Supplier name or ID |
Implementation Reference
- src/index.ts:813-831 (handler)Executes the get_supplier_info tool: searches mock supplier data by name/ID, returns contact details, lead times, min order, and top products from that supplier.const supplierName = String(args?.supplierName || '').toLowerCase(); const supplier = storeData.suppliers.find(s => s.name.toLowerCase().includes(supplierName) || s.id.toLowerCase() === supplierName ); if (!supplier) { return { content: [{ type: 'text', text: `❌ Supplier not found: "${args?.supplierName}"` }] }; } const supplierProducts = storeData.inventory.filter(i => i.supplier === supplier.name); return { content: [{ type: 'text', text: `🏢 ${supplier.name} (${supplier.id})\n\n📧 ${supplier.contact}\n📱 ${supplier.phone}\n⏱️ Lead Time: ${supplier.leadTime}\n💵 Minimum Order: $${supplier.minOrder}\n\n📦 Products from this supplier: ${supplierProducts.length}\n${supplierProducts.slice(0, 5).map(p => `• ${p.name}`).join('\n')}` }] }; }
- src/index.ts:214-223 (schema)Defines the tool schema: name, description, and inputSchema requiring supplierName parameter.name: 'get_supplier_info', description: 'Get detailed supplier information including contact details, lead times, and minimum order requirements.', inputSchema: { type: 'object', properties: { supplierName: { type: 'string', description: 'Supplier name or ID' }, }, required: ['supplierName'], }, },
- src/index.ts:516-518 (registration)Registers the tool list (including get_supplier_info) for MCP ListTools requests.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });