Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

update_batch_status

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

Instructions

Update batch status (draft or submitted)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesBatch ID
statusYes

Implementation Reference

  • MCP tool handler that destructures arguments and invokes the client method to update batch status, returning JSON response.
    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) }] };
  • Input schema definition and tool metadata for update_batch_status.
    { 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'], }, },
  • Core helper function in the client that performs the HTTP POST request to the ConsignCloud API endpoint to update the batch status.
    async updateBatchStatus(id: string, status: 'draft' | 'submitted'): Promise<Batch> { const response = await this.client.post(`/batches/${id}/status`, { status }); return response.data; }
  • src/server.ts:418-420 (registration)
    Registers the list tools handler which exposes the update_batch_status tool via the createTools() array.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ 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