Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

create_account

Create a new vendor or consignor account in ConsignCloud to manage inventory, sales, and business operations through the MCP server.

Instructions

Create a new vendor/consignor account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
first_nameNo
last_nameNo
companyNo
emailNo
phone_numberNo
default_splitNoDefault split (0-1)
default_inventory_typeNo

Implementation Reference

  • MCP tool handler for 'create_account' that executes client.createAccount with tool arguments and returns JSON-stringified result.
    case 'create_account':
      return { content: [{ type: 'text', text: JSON.stringify(await client.createAccount(args as any), null, 2) }] };
  • src/server.ts:159-177 (registration)
    Registration of the 'create_account' tool in createTools() array, including description and input schema definition.
    {
      name: 'create_account',
      description: 'Create a new vendor/consignor account',
      inputSchema: {
        type: 'object',
        properties: {
          first_name: { type: 'string' },
          last_name: { type: 'string' },
          company: { type: 'string' },
          email: { type: 'string' },
          phone_number: { type: 'string' },
          default_split: { type: 'number', description: 'Default split (0-1)' },
          default_inventory_type: {
            type: 'string',
            enum: ['consignment', 'buy_outright', 'retail']
          },
        },
      },
    },
  • TypeScript interface for Account used in createAccount parameters and response.
    export interface Account {
      id: string;
      number: string;
      first_name: string | null;
      last_name: string | null;
      company: string | null;
      email: string | null;
      phone_number: string | null;
      balance: number; // converted to store currency
      default_split: number;
      default_inventory_type: 'consignment' | 'buy_outright' | 'retail';
      is_vendor: boolean;
      created: string;
    }
  • Core helper function in ConsignCloudClient that handles the API POST to create a new account, including currency conversion and response processing.
    async createAccount(data: Partial<Account>): Promise<Account> {
      // Convert user input to API cents
      const apiData = {
        ...data,
        balance: data.balance ? this.convertToApiCents(data.balance) : undefined,
      };
      const response = await this.client.post('/accounts', apiData);
      return this.convertAccountResponse(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