Skip to main content
Glama

search_apis

Find and retrieve API information from Eolink OpenAPI to integrate and manage APIs within the Windsurf IDE development environment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query

Implementation Reference

  • Core handler function that executes the search by calling Eolink's /search/apis endpoint with the query parameter.
    async searchApis(query: string): Promise<Api[]> { try { const response = await axios.get(`${this.baseUrl}/search/apis`, { headers: this.getHeaders(), params: { q: query }, }); return response.data.data || []; } catch (error) { console.error(`Error searching APIs with query "${query}":`, error); return []; } }
  • MCP tool registration for 'search_apis', including input schema validation with Zod and thin wrapper handler that calls eolinkService.searchApis.
    this.server.tool( "search_apis", { query: z.string().describe("Search query") }, async ({ query }) => { const apis = await eolinkService.searchApis(query); return { content: [{ type: "text", text: JSON.stringify({ apis }, null, 2) }] }; } );
  • Zod schema defining the input parameter 'query' as a string for the search_apis tool.
    { query: z.string().describe("Search query") },

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/scarqin/mcp-apikit'

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