Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

list_accounts

Retrieve vendor and consignor accounts from ConsignCloud with optional filters for vendor status, limits, and pagination to manage business operations.

Instructions

List vendor/consignor accounts with optional filters

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of results (default: 1000)
cursorNo
is_vendorNoFilter by vendor status

Implementation Reference

  • Defines the tool metadata including name, description, and input schema for 'list_accounts'.
    { name: 'list_accounts', description: 'List vendor/consignor accounts with optional filters', inputSchema: { type: 'object', properties: { limit: { type: 'number', description: 'Number of results (default: 1000)' }, cursor: { type: 'string' }, is_vendor: { type: 'boolean', description: 'Filter by vendor status' }, }, }, },
  • MCP server handler for 'list_accounts' tool: prepares params, calls client.listAccounts(), formats response as JSON text.
    case 'list_accounts': const accountsParams = { limit: 1000, ...(args as any) }; return { content: [{ type: 'text', text: JSON.stringify(await client.listAccounts(accountsParams), null, 2) }] };
  • Client-side implementation: API GET /accounts with params, maps accounts via convertAccountResponse, returns paginated response.
    async listAccounts(params?: Record<string, any>): Promise<PaginatedResponse<Account>> { const response = await this.client.get('/accounts', { params }); return { data: response.data.data.map((account: any) => this.convertAccountResponse(account)), next_cursor: response.data.next_cursor, };
  • Helper to convert API account response, adjusting balance from cents to 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