Skip to main content
Glama
luizzzvictor

mcp-comexstat

by luizzzvictor

getAuxiliaryTable

Retrieve auxiliary table data with search and pagination support for structured queries on the mcp-comexstat server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
pageSizeNo
searchNo
tableYes

Implementation Reference

  • Core handler implementing the tool logic: makes a GET request to `/auxiliary/{table}` with optional search, page, and pageSize parameters.
    async getAuxiliaryTable( table: string, search?: string, page: number = 1, pageSize: number = 100 ): Promise<{ data: any[]; pagination: { total: number; page: number; pageSize: number; pages: number; }; }> { return this.get(`/auxiliary/${table}`, { search, page, pageSize }); }
  • MCP tool registration for 'getAuxiliaryTable', defining schema and thin handler that calls ComexstatClient.getAuxiliaryTable and returns JSON stringified response.
    "getAuxiliaryTable", { table: z.string(), search: z.string().optional(), page: z.number().optional(), pageSize: z.number().optional(), }, async ({ table, search, page, pageSize }) => ({ content: [ { type: "text", text: JSON.stringify( await this.client.getAuxiliaryTable(table, search, page, pageSize) ), }, ], }) );
  • Zod input schema for the getAuxiliaryTable tool: required 'table' string, optional 'search', 'page', 'pageSize'.
    table: z.string(), search: z.string().optional(), page: z.number().optional(), pageSize: z.number().optional(), }, async ({ table, search, page, pageSize }) => ({

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/luizzzvictor/mcp-comexstat'

If you have feedback or need assistance with the MCP directory API, please join our Discord server