Skip to main content
Glama

get_stock_adjustment

Retrieve detailed information about specific inventory stock adjustments including related entities to track and analyze inventory changes.

Instructions

Get details of a specific stock adjustment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
includeNoRelated entities to include
stockAdjustmentIdYesThe stock adjustment ID

Implementation Reference

  • index.js:262-282 (registration)
    Registers the MCP tool 'get_stock_adjustment' with input schema (stockAdjustmentId, optional include) and a thin async handler that calls inventoryHandlers.getStockAdjustment
    server.registerTool( 'get_stock_adjustment', { description: 'Get details of a specific stock adjustment', inputSchema: { stockAdjustmentId: z.string().describe('The stock adjustment ID'), include: z.string().optional().describe('Related entities to include') } }, async (args) => { const result = await inventoryHandlers.getStockAdjustment(inflowClient, args); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2) } ] }; } );
  • Main handler function for get_stock_adjustment: validates stockAdjustmentId and delegates to InflowClient
    async getStockAdjustment(client, args) { if (!args.stockAdjustmentId) { return { success: false, error: 'stockAdjustmentId is required' }; } return await client.getStockAdjustment(args.stockAdjustmentId, args.include); },
  • InflowClient helper method that makes the actual API GET request for stock adjustment details
    async getStockAdjustment(stockAdjustmentId, include = null) { try { const params = include ? `?include=${include}` : ''; const response = await this.client.get( `/${this.config.companyId}/stock-adjustments/${stockAdjustmentId}${params}` ); return { success: true, data: response.data }; } catch (error) { return this._handleError(error, 'getStockAdjustment'); } }

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