get_inventory_part
Retrieve detailed information about a specific inventory part using its ID to access stock details, specifications, and availability data within Shopmonkey's shop management system.
Instructions
Get detailed information about a single inventory part by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The inventory part ID |
Implementation Reference
- src/tools/inventory.ts:70-74 (handler)The handler implementation for get_inventory_part, which performs a GET request to the Shopmonkey API for a specific part ID.
async get_inventory_part(args) { if (!args.id) return { content: [{ type: 'text', text: 'Error: id is required' }], isError: true }; const data = await shopmonkeyRequest<InventoryPart>('GET', `/inventory/part/${sanitizePathParam(String(args.id))}`); return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] }; }, - src/tools/inventory.ts:19-23 (schema)The MCP tool definition (schema) for get_inventory_part.
{ name: 'get_inventory_part', description: 'Get detailed information about a single inventory part by its ID.', inputSchema: { type: 'object' as const, properties: { id: { type: 'string', description: 'The inventory part ID' } }, required: ['id'] }, },