rr_get_inventory_value
Calculate total inventory value with breakdown for e-commerce stores to monitor stock worth and financial planning.
Instructions
Get total inventory value breakdown
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store_id | No |
Implementation Reference
- src/index.ts:41-41 (registration)Registration of the tool rr_get_inventory_value.
{ name: 'rr_get_inventory_value', description: 'Get total inventory value breakdown', inputSchema: { type: 'object' as const, properties: { store_id: { type: 'string' } } } }, - src/index.ts:57-66 (handler)The handler function callApi acts as a proxy, forwarding tool requests to a remote API.
async function callApi(toolName: string, input: Record<string, unknown>): Promise<unknown> { const resp = await fetch(`${BASE_URL}/api/mcp/call`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${API_KEY}`, }, body: JSON.stringify({ tool: toolName, input }), });