Skip to main content
Glama

list_saved_apis

Retrieve all saved API configurations from the OpenAPI MCP proxy server to access endpoint details and data models without loading full schemas.

Instructions

List all saved API configurations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the tool: fetches APIs from config_manager, formats them, and returns as text content.
    async def handle_call(self, arguments: Dict[str, Any]) -> List[TextContent]: try: apis = self.config_manager.list_apis() result = self._format_api_list(apis) return self._create_text_response(result) except Exception as e: return self._create_error_response(e)
  • Defines the tool's input schema (empty object, no parameters) and provides name and description.
    def get_tool_definition(self) -> Tool: return Tool( name=self.name, description=self.description, inputSchema={ "type": "object", "properties": {}, "required": [], }, )
  • Instantiates the ListSavedApisTool and adds it to the registry's tools list.
    RemoveApiTool(self.config_manager),
  • Helper method that formats the list of APIs into a human-readable string.
    def _format_api_list(self, apis: List[Dict[str, str]]) -> str: """Format API list for display.""" if not apis: return "No saved APIs found" result = f"Saved APIs ({len(apis)}):\n\n" for api in apis: result += f"- {api['name']}: {api['url']}" if api.get("description"): result += f" - {api['description']}" result += "\n" return result

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/nyudenkov/openapi-mcp-proxy'

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