Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

update_account

Modify account details like name, contact information, and company data for existing users in the ConsignCloud system.

Instructions

Update an existing account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
first_nameNo
last_nameNo
companyNo
emailNo
phone_numberNo

Implementation Reference

  • MCP server tool handler for 'update_account'. Parses arguments, calls client.updateAccount, and returns JSON response.
    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 validation for the 'update_account' tool defining parameters like id (required), names, company, email, phone.
    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() array, including name, description, and input schema for listing via ListToolsRequest.
    { 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 updateAccount in ConsignCloudClient: converts data (handles balance cents), PATCH /accounts/{id}, converts response.
    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