Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

update_account

Modify existing account details like contact information, company name, or phone number to maintain accurate vendor records in consignment operations.

Instructions

Update an existing account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
first_nameNo
last_nameNo
companyNo
emailNo
phone_numberNo

Implementation Reference

  • MCP tool handler for 'update_account': extracts account ID and update data from arguments, calls client.updateAccount, and returns the JSON-stringified result.
    case 'update_account': const { id: accountId, ...accountData } = args as any; return { content: [{ type: 'text', text: JSON.stringify(await client.updateAccount(accountId, accountData), null, 2) }] };
  • Input schema definition for the 'update_account' tool, specifying required 'id' and optional account fields.
    inputSchema: { type: 'object', properties: { id: { type: 'string' }, first_name: { type: 'string' }, last_name: { type: 'string' }, company: { type: 'string' }, email: { type: 'string' }, phone_number: { type: 'string' }, }, required: ['id'], },
  • src/server.ts:178-193 (registration)
    Tool registration in createTools(): defines name, description, and inputSchema for 'update_account'.
    { name: 'update_account', description: 'Update an existing account', inputSchema: { type: 'object', properties: { id: { type: 'string' }, first_name: { type: 'string' }, last_name: { type: 'string' }, company: { type: 'string' }, email: { type: 'string' }, phone_number: { type: 'string' }, }, required: ['id'], }, },
  • Core implementation of account update: converts data (handling currency), sends PATCH request to API, and converts response back to client model.
    async updateAccount(id: string, data: Partial<Account>): Promise<Account> { // Convert user input to API cents const apiData = { ...data, balance: data.balance ? this.convertToApiCents(data.balance) : undefined, }; const response = await this.client.patch(`/accounts/${id}`, apiData); return this.convertAccountResponse(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