Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

get_account

Retrieve account details by ID to manage consignment business operations, including vendor information and sales tracking.

Instructions

Get details of a specific account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesAccount ID

Implementation Reference

  • Core implementation of getAccount: makes HTTP GET to /accounts/{id} and converts the API response to typed Account.
    async getAccount(id: string): Promise<Account> { const response = await this.client.get(`/accounts/${id}`); return this.convertAccountResponse(response.data); }
  • src/server.ts:148-158 (registration)
    MCP tool registration defining the 'get_account' tool, its description, and input schema.
    { name: 'get_account', description: 'Get details of a specific account', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Account ID' }, }, required: ['id'], }, },
  • Server-side tool execution handler that dispatches to client.getAccount and formats response as MCP content.
    case 'get_account': return { content: [{ type: 'text', text: JSON.stringify(await client.getAccount((args as any).id), null, 2) }] };
  • TypeScript interface defining the Account output type returned by getAccount.
    export interface Account { id: string; number: string; first_name: string | null; last_name: string | null; company: string | null; email: string | null; phone_number: string | null; balance: number; // converted to store currency default_split: number; default_inventory_type: 'consignment' | 'buy_outright' | 'retail'; is_vendor: boolean; created: string; }
  • Helper function to convert raw API account response (with cents) to typed Account with store currency.
    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