Skip to main content
Glama

get_public_api_details

Retrieve comprehensive details for any public API using its unique identifier to understand endpoints, authentication, and usage specifications.

Instructions

Get detailed information about a specific API by its unique public-apis-mcp server ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • The handler function implementing the get_public_api_details tool logic: loads the indexed catalog and retrieves the specific ApiItem by ID, raising ValueError if not found.
    def get_public_api_details(id: str) -> ApiItem: """Get detailed information about a specific API by its unique public-apis-mcp server ID """ items, by_id = load_catalog_indexed() item = by_id.get(id) if not item: raise ValueError(f"API id not found: {id}") return item
  • Pydantic model (schema) for ApiItem, which is the return type of the get_public_api_details tool.
    class ApiItem(BaseModel): id: str api: str = Field(description="API display name") api_link: str description: str auth: str | None = None https: str | bool | None = None cors: str | None = None category: str | None = None
  • Invocation of register_tools on the MCP instance, which registers the get_public_api_details tool.
    register_tools(mcp)
  • The @mcp.tool decorator applied to the get_public_api_details function, performing the actual tool registration.
    @mcp.tool

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/zazencodes/public-apis-mcp'

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