Skip to main content
Glama

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
NameRequiredDescriptionDefault
store_idNo

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' } } } },
  • 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 }),
      });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ReplenishRadar/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server