bos_cart_remove_item
Remove a specific item from a cart using its unique item ID. The item is immediately deleted from the cart.
Instructions
Remove item from cart
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes |
Implementation Reference
- src/tools/bos.ts:245-245 (handler)The handler function that executes the 'Remove item from cart' logic. It sends a DELETE request to /mcp/cart/items/{item_id}.
handler: async (args, client) => client.delete(`/mcp/cart/items/${args.item_id}`), - src/tools/bos.ts:244-244 (schema)The input schema for the tool, requiring a single 'item_id' field of type string.
schema: { item_id: { type: 'string' } }, - src/tools/bos.ts:241-246 (registration)The tool 'bos_cart_remove_item' is defined as an entry in the cartTools array within the Cart section (line 214). It has name, description, schema, and handler.
{ name: 'bos_cart_remove_item', description: 'Remove item from cart', schema: { item_id: { type: 'string' } }, handler: async (args, client) => client.delete(`/mcp/cart/items/${args.item_id}`), }, - src/client/index.ts:102-104 (helper)The BosApiClient.delete method that actually performs the HTTP DELETE request to the API.
async delete<T>(path: string): Promise<T> { return this.request<T>('DELETE', path); }