Skip to main content
Glama
luizzzvictor

mcp-comexstat

by luizzzvictor

getAvailableFilters

Retrieve available data filters for analysis and reporting within the mcp-comexstat server to streamline query customization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function `getAvailableFilters` in ComexstatClient that fetches available filters from the Comexstat API endpoint '/general/filters' using an axios GET request with optional language parameter.
    async getAvailableFilters( language: string = "pt" ): Promise<Array<{ filter: string; text: string }>> { const response = await this.get<{ data: { "0": string; list: Array<{ filter: string; text: string; }>; }; success: boolean; message: string | null; processo_info: any; language: string; }>("/general/filters", { language }); return response.data.list; }
  • Registration of the 'getAvailableFilters' tool in the MCP server using `server.tool`, which takes no input parameters (empty schema) and returns the JSON-stringified result from the client handler as text content.
    this.server.tool("getAvailableFilters", {}, async () => ({ content: [ { type: "text", text: JSON.stringify(await this.client.getAvailableFilters()), }, ], }));

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