Skip to main content
Glama
luizzzvictor

mcp-comexstat

by luizzzvictor

getAvailableFields

Retrieve a list of available fields for data extraction from the mcp-comexstat server, enabling efficient data querying and analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core implementation of getAvailableFields: fetches available filter fields from the '/general/details' API endpoint and returns the list.
    async getAvailableFields( 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/details", { language }); return response.data.list; }
  • Registers the MCP tool 'getAvailableFields' with empty input schema. The handler delegates to ComexstatClient.getAvailableFields() and wraps the JSON-stringified result in MCP text content format.
    this.server.tool("getAvailableFields", {}, async () => ({ content: [ { type: "text", text: JSON.stringify(await this.client.getAvailableFields()), }, ], }));
  • Empty Zod schema for getAvailableFields tool inputs (no parameters required).
    this.server.tool("getAvailableFields", {}, async () => ({

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