Skip to main content
Glama
luizzzvictor

mcp-comexstat

by luizzzvictor

getLastUpdate

Retrieve the most recent update timestamp from the mcp-comexstat server to track data synchronization and ensure accurate, timely information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function that implements the logic for getLastUpdate by calling the Comexstat API endpoint '/general/dates/updated' and returning the updated date.
    async getLastUpdate(): Promise<string> { const response = await this.get<{ data: { updated: string; year: string; monthNumber: string; }; success: boolean; message: string | null; processo_info: any; language: string; }>("/general/dates/updated"); return response.data.updated; }
  • MCP tool registration for 'getLastUpdate' with empty input schema, delegating execution to ComexstatClient.getLastUpdate().
    this.server.tool("getLastUpdate", {}, async () => ({ content: [{ type: "text", text: await this.client.getLastUpdate() }], }));

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