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,
    }));
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 'update' implying mutation, but doesn't disclose behavioral traits such as required permissions, whether changes are reversible, side effects (e.g., triggers workflows), or error conditions. This is inadequate for a mutation tool with zero annotation coverage.

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 zero waste. It front-loads the core action and key details, making it easy to parse quickly. Every word earns its place without redundancy.

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 a mutation tool with no annotations, 50% schema coverage, and no output schema, the description is incomplete. It lacks details on behavioral aspects (e.g., permissions, effects), parameter context (e.g., 'id' format), and expected outcomes. More information is needed 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% (only 'id' has a description, 'status' lacks one). The description adds value by specifying 'draft or submitted' for the status parameter, which clarifies the enum values beyond the schema. However, it doesn't explain the 'id' parameter further or provide context like format or sourcing, leaving gaps.

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

Purpose4/5

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

The description clearly states the verb 'update' and the resource 'batch status', with specific status values 'draft or submitted' mentioned. It distinguishes from siblings like 'create_batch' or 'list_batches' by focusing on status modification, though it doesn't explicitly contrast with other update tools like 'update_account' or 'update_item'.

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. It doesn't mention prerequisites (e.g., batch must exist), exclusions (e.g., cannot update to certain statuses), or compare to sibling tools like 'void_sale' for status changes. Usage is implied only through the action described.

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