Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

create_batch

Create a new batch of items in ConsignCloud to organize inventory for consignment or retail operations, specifying account and description details.

Instructions

Create a new batch of items

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionNo
accountNoAccount ID

Implementation Reference

  • Core implementation of the create_batch tool: sends POST request to /batches API endpoint with provided data and returns the created Batch object.
    async createBatch(data: Partial<Batch>): Promise<Batch> {
      const response = await this.client.post('/batches', data);
      return response.data;
  • src/server.ts:303-313 (registration)
    Registers the 'create_batch' tool in the MCP tools list, including name, description, and input schema definition.
    {
      name: 'create_batch',
      description: 'Create a new batch of items',
      inputSchema: {
        type: 'object',
        properties: {
          description: { type: 'string' },
          account: { type: 'string', description: 'Account ID' },
        },
      },
    },
  • MCP server-side handler for tool calls: receives arguments, invokes client.createBatch, and formats response as MCP content.
    case 'create_batch':
      return { content: [{ type: 'text', text: JSON.stringify(await client.createBatch(args as any), null, 2) }] };
  • TypeScript interface defining the Batch object structure, used as return type for createBatch.
    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