get_item
Retrieve inventory item details by ID to manage consignment and retail operations through the ConsignCloud API.
Instructions
Get details of a specific inventory item by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Item ID (UUID) |
Implementation Reference
- src/server.ts:28-38 (registration)Tool registration defining the name, description, and input schema (requires 'id' string) for the 'get_item' MCP tool.{ name: 'get_item', description: 'Get details of a specific inventory item by ID', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Item ID (UUID)' }, }, required: ['id'], }, },
- src/server.ts:432-433 (handler)MCP server tool handler: extracts 'id' from arguments, calls client.getItem(id), stringifies result as JSON, and returns as text content response.case 'get_item': return { content: [{ type: 'text', text: JSON.stringify(await client.getItem((args as any).id), null, 2) }] };
- src/client.ts:95-98 (handler)Core implementation of getItem: performs HTTP GET to `/items/${id}` API endpoint and converts the raw API response to Item type using currency conversion.async getItem(id: string): Promise<Item> { const response = await this.client.get(`/items/${id}`); return this.convertItemResponse(response.data); }