getAuxiliaryTable
Retrieve auxiliary table data with search and pagination support for structured queries on the mcp-comexstat server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| pageSize | No | ||
| search | No | ||
| table | Yes |
Implementation Reference
- src/ComexstatClient.ts:458-473 (handler)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 }); }
- src/ComexstatMCP.ts:301-319 (registration)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) ), }, ], }) );
- src/ComexstatMCP.ts:303-308 (schema)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 }) => ({