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;
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It states 'Create a new batch' which implies a write operation, but doesn't disclose behavioral traits like required permissions, whether it's idempotent, what happens on failure, or rate limits. This is a significant gap for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no wasted words. It's appropriately sized and front-loaded, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity as a write operation with no annotations, 2 parameters, and no output schema, the description is incomplete. It lacks details on behavior, return values, error handling, or how it fits with siblings, making it inadequate for safe and effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50%, with only 'account' parameter documented. The description adds no parameter semantics beyond what's implied by 'batch of items', which doesn't clarify the purpose of 'description' or 'account'. Baseline 3 is appropriate as the schema partially covers parameters, but the description doesn't compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Create a new batch of items' clearly states the action (create) and resource (batch of items), which is adequate. However, it doesn't differentiate from sibling tools like 'create_account' or 'create_item' beyond specifying the resource type, making it somewhat vague about what makes this tool unique.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. With siblings like 'create_account', 'create_item', and 'list_batches', the description lacks context on prerequisites, typical workflows, or exclusions, leaving usage unclear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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