Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

create_batch

Create a new batch of items for inventory management in consignment operations by specifying account ID and description.

Instructions

Create a new batch of items

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionNo
accountNoAccount ID

Implementation Reference

  • Primary handler function that implements the create_batch tool logic by making a POST request to the '/batches' API endpoint using axios.
    async createBatch(data: Partial<Batch>): Promise<Batch> { const response = await this.client.post('/batches', data); return response.data;
  • MCP server-side handler for the 'create_batch' tool call, which delegates to the client.createBatch method and formats the response as MCP content.
    case 'create_batch': return { content: [{ type: 'text', text: JSON.stringify(await client.createBatch(args as any), null, 2) }] };
  • src/server.ts:303-313 (registration)
    Registration of the 'create_batch' tool in the createTools() function, including name, description, and input schema.
    { name: 'create_batch', description: 'Create a new batch of items', inputSchema: { type: 'object', properties: { description: { type: 'string' }, account: { type: 'string', description: 'Account ID' }, }, }, },
  • TypeScript interface definition for Batch, used as input/output type for createBatch (Partial<Batch> input, Batch output). Defines the structure of batch data.
    export interface Batch { id: string; created: string; status: 'submitted' | 'draft'; platform_editing_on: 'portal' | 'consigncloud'; number: string; description: string | null; account: string | null; }

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