Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

list_batches

Retrieve and filter batches of items in ConsignCloud by status or account to manage consignment operations and inventory tracking.

Instructions

List batches of items

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of results (default: 1000)
cursorNo
statusNo
accountNoFilter by account ID

Implementation Reference

  • MCP server tool handler for 'list_batches' that processes arguments and delegates to client.listBatches()
    case 'list_batches': const batchesParams = { limit: 1000, ...(args as any) }; return { content: [{ type: 'text', text: JSON.stringify(await client.listBatches(batchesParams), null, 2) }] };
  • src/server.ts:290-302 (registration)
    Tool registration in createTools() array, defining name, description, and input schema
    { name: 'list_batches', description: 'List batches of items', inputSchema: { type: 'object', properties: { limit: { type: 'number', description: 'Number of results (default: 1000)' }, cursor: { type: 'string' }, status: { type: 'string', enum: ['draft', 'submitted'] }, account: { type: 'string', description: 'Filter by account ID' }, }, }, },
  • ConsignCloudClient helper method implementing the core logic by calling the '/batches' API endpoint
    async listBatches(params?: Record<string, any>): Promise<PaginatedResponse<Batch>> { const response = await this.client.get('/batches', { params }); return response.data; }

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/modellers/mcp-consigncloud'

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