Skip to main content
Glama
luizzzvictor

mcp-comexstat

by luizzzvictor

getStates

Retrieve and analyze state-related data for streamlined processing and reporting using this MCP server tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registers the 'getStates' MCP tool with empty input schema. The inline handler fetches states using the client and returns JSON-formatted response as text content.
    this.server.tool("getStates", {}, async () => ({ content: [ { type: "text", text: JSON.stringify(await this.client.getStates()), }, ], }));
  • Inline handler function for the getStates tool that executes the tool logic by calling client.getStates() and formatting as JSON text.
    content: [ { type: "text", text: JSON.stringify(await this.client.getStates()), }, ], }));
  • Core implementation of getStates that queries the Comexstat API endpoint /tables/uf and returns typed response with list of states (UF).
    async getStates(): Promise<{ data: Array<{ text: string; id: string; uf: string; }>; success: boolean; message: string | null; processo_info: any; language: string; }> { return this.get("/tables/uf"); }
  • TypeScript type definition for the output schema of getStates, defining the structure of the states list response.
    data: Array<{ text: string; id: string; uf: string; }>; success: boolean; message: string | null; processo_info: any; language: string; }> {

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