Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

get_account

Retrieve account details by ID to manage vendor information and business operations in consignment and retail systems.

Instructions

Get details of a specific account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesAccount ID

Implementation Reference

  • Defines the 'get_account' tool schema: name, description, and input schema requiring a string 'id'.
    { name: 'get_account', description: 'Get details of a specific account', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Account ID' }, }, required: ['id'], }, },
  • MCP tool handler for 'get_account': extracts 'id' from arguments, calls client.getAccount(id), stringifies the result as JSON, and returns it in the tool response format.
    case 'get_account': return { content: [{ type: 'text', text: JSON.stringify(await client.getAccount((args as any).id), null, 2) }] };
  • Core implementation: Makes HTTP GET request to `/accounts/${id}` API endpoint and converts the raw response to typed Account object.
    async getAccount(id: string): Promise<Account> { const response = await this.client.get(`/accounts/${id}`); return this.convertAccountResponse(response.data); }
  • Supporting utility: Converts API account response by adjusting 'balance' from cents (API format) to store currency units.
    private convertAccountResponse(account: any): Account { return { ...account, balance: this.convertFromApiCents(account.balance), }; }

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