delete_item
Remove inventory items from active listings while preserving records for tracking and analytics in consignment business management.
Instructions
Delete (soft delete) an inventory item
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Item ID |
Implementation Reference
- src/server.ts:442-444 (handler)MCP tool handler for 'delete_item': extracts item ID from tool arguments, delegates deletion to ConsignCloudClient, and returns a success response.case 'delete_item': await client.deleteItem((args as any).id); return { content: [{ type: 'text', text: 'Item deleted successfully' }] };
- src/server.ts:79-89 (schema)Tool definition including name, description, and input schema requiring a string 'id' for the item to delete.{ name: 'delete_item', description: 'Delete (soft delete) an inventory item', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Item ID' }, }, required: ['id'], }, },
- src/client.ts:122-124 (helper)ConsignCloudClient helper method that sends HTTP DELETE request to the API endpoint `/items/${id}` to perform the soft delete.async deleteItem(id: string): Promise<void> { await this.client.delete(`/items/${id}`); }