Skip to main content
Glama

refresh-api-catalog

Update the API catalog to reflect current OpenAPI specifications, ensuring AI-powered development tools access accurate API documentation.

Instructions

Refresh the API catalog

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Inline handler for the refresh-api-catalog tool. Logs the action, calls specExplorer.refresh() to refresh the API catalog, and returns a success message. Errors are logged and rethrown.
    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; } });
  • Registers the refresh-api-catalog tool on the MCP server with no input schema and the inline handler function.
    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; } });

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