Skip to main content
Glama

get_inventory_summary

Retrieve inventory summary for a product including quantities on hand, available, and reserved stock levels to monitor current inventory status.

Instructions

Get inventory summary for a product including quantities on hand, available, reserved, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productIdYesThe product ID (UUID)

Implementation Reference

  • Handler function that validates the productId argument and delegates to InflowClient.getProductSummary to fetch the inventory summary.
    async getProductSummary(client, args) { if (!args.productId) { return { success: false, error: 'productId is required' }; } return await client.getProductSummary(args.productId); },
  • Input schema definition using Zod for the get_inventory_summary tool, specifying the required productId parameter.
    { description: 'Get inventory summary for a product including quantities on hand, available, reserved, etc.', inputSchema: { productId: z.string().describe('The product ID (UUID)') } },
  • index.js:108-127 (registration)
    MCP server registration of the get_inventory_summary tool, including schema and wrapper that calls the productHandlers handler and formats the response.
    server.registerTool( 'get_inventory_summary', { description: 'Get inventory summary for a product including quantities on hand, available, reserved, etc.', inputSchema: { productId: z.string().describe('The product ID (UUID)') } }, async (args) => { const result = await productHandlers.getProductSummary(inflowClient, args); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2) } ] }; } );
  • InflowClient helper method that makes the HTTP GET request to the Inflow API endpoint for product inventory summary (/products/{productId}/summary).
    async getProductSummary(productId) { try { const response = await this.client.get( `/${this.config.companyId}/products/${productId}/summary` ); return { success: true, data: response.data }; } catch (error) { return this._handleError(error, 'getProductSummary'); } }

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/intelligent-staffing-systems/mcp-inflow-ingredients'

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