Skip to main content
Glama

refresh-api-catalog

Update the API catalog in the MCP OpenAPI Server to ensure AI-powered IDE integrations have current OpenAPI specifications for accurate API understanding and interaction.

Instructions

Refresh the API catalog

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Inline handler function for the 'refresh-api-catalog' tool that calls specExplorer.refresh() to refresh the API catalog and returns a success message.
    server.tool("refresh-api-catalog", "Refresh the API catalog", async () => { try { this.logger.info('Refreshing API catalog'); await this.specExplorer.refresh(); this.logger.info('API catalog refreshed successfully'); return { content: [{ type: "text", text: "API catalog refreshed" }], }; } catch (error) { this.logger.error('Failed to refresh API catalog', { error }); throw error; } });
  • The 'refresh-api-catalog' tool is registered here in the setUpTools method using server.tool, with no input schema and the inline handler.
    server.tool("refresh-api-catalog", "Refresh the API catalog", async () => { try { this.logger.info('Refreshing API catalog'); await this.specExplorer.refresh(); this.logger.info('API catalog refreshed successfully'); return { content: [{ type: "text", text: "API catalog refreshed" }], }; } catch (error) { this.logger.error('Failed to refresh API catalog', { error }); throw error; } });

Other Tools

Related Tools

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/ReAPI-com/mcp-openapi'

If you have feedback or need assistance with the MCP directory API, please join our Discord server