Skip to main content
Glama

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
NameRequiredDescriptionDefault
supplierNameYesSupplier name or ID

Implementation Reference

  • 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')}` }] }; }
  • 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 }; });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wspotter/mcpart'

If you have feedback or need assistance with the MCP directory API, please join our Discord server