Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

update_batch_status

Change batch processing status between draft and submitted states to manage consignment workflows in ConsignCloud.

Instructions

Update batch status (draft or submitted)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesBatch ID
statusYes

Implementation Reference

  • MCP tool handler that extracts id and status from arguments and calls client.updateBatchStatus to execute the tool logic.
    case 'update_batch_status': const { id: batchId, status } = args as any; return { content: [{ type: 'text', text: JSON.stringify(await client.updateBatchStatus(batchId, status), null, 2) }] };
  • src/server.ts:314-325 (registration)
    Registration of the update_batch_status tool in createTools(), including name, description, and input schema.
    { name: 'update_batch_status', description: 'Update batch status (draft or submitted)', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Batch ID' }, status: { type: 'string', enum: ['draft', 'submitted'] }, }, required: ['id', 'status'], }, },
  • Input schema definition for the update_batch_status tool, specifying required id (string) and status (enum: draft|submitted).
    inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Batch ID' }, status: { type: 'string', enum: ['draft', 'submitted'] }, }, required: ['id', 'status'], },
  • Client library method that implements the actual API call to update batch status via POST to /batches/{id}/status.
    async updateBatchStatus(id: string, status: 'draft' | 'submitted'): Promise<Batch> { const response = await this.client.post(`/batches/${id}/status`, { status }); 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