bos_product_stock
Retrieve stock levels for a product across all locations by providing its product ID.
Instructions
Get stock levels for a product across all locations
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes |
Implementation Reference
- src/tools/bos.ts:78-83 (handler)The handler for bos_product_stock. It makes a GET request to /mcp/products/{product_id}/stock via the BosApiClient.
{ name: 'bos_product_stock', description: 'Get stock levels for a product across all locations', schema: { product_id: { type: 'string' } }, handler: async (args, client) => client.get(`/mcp/products/${args.product_id}/stock`), }, - src/tools/bos.ts:81-81 (schema)The input schema for bos_product_stock expects a single required string field: product_id.
schema: { product_id: { type: 'string' } }, - src/tools/bos.ts:78-83 (registration)The tool is registered as part of the productTools array (line 7) in src/tools/bos.ts, which is then spread into allTools in src/index.ts (line 33), src/http.ts (line 33), and src/stdio.ts (line 33). Tools are registered with the MCP SDK via server.tool() in each entry point.
{ name: 'bos_product_stock', description: 'Get stock levels for a product across all locations', schema: { product_id: { type: 'string' } }, handler: async (args, client) => client.get(`/mcp/products/${args.product_id}/stock`), },