Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

void_sale

Cancel or reverse a completed sale transaction in ConsignCloud by providing the sale ID to correct errors or process returns.

Instructions

Void a sale

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSale ID

Implementation Reference

  • MCP server handler for the 'void_sale' tool. Extracts the sale ID from input arguments and delegates execution to the ConsignCloudClient's voidSale method, returning the JSON-serialized result.
    case 'void_sale': return { content: [{ type: 'text', text: JSON.stringify(await client.voidSale((args as any).id), null, 2) }] };
  • Input schema validation for the 'void_sale' tool, requiring a single 'id' parameter of type string.
    inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Sale ID' }, }, required: ['id'], },
  • src/server.ts:125-135 (registration)
    Registration of the 'void_sale' tool in the createTools() function, including name, description, and input schema.
    { name: 'void_sale', description: 'Void a sale', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Sale ID' }, }, required: ['id'], }, },
  • Core implementation in ConsignCloudClient: performs HTTP POST to `/sales/${id}/void` endpoint and converts the API response using convertSaleResponse.
    async voidSale(id: string): Promise<Sale> { const response = await this.client.post(`/sales/${id}/void`); return this.convertSaleResponse(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