Skip to main content
Glama

search_apis

Query and retrieve API details from Eolink OpenAPI using a search interface, facilitating API integration and management within the Windsurf IDE development environment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query

Implementation Reference

  • Registers the MCP tool named 'search_apis' with Zod input schema requiring a 'query' string and an async handler function that calls eolinkService.searchApis and returns the results as formatted JSON text content.
    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) }] }; } );
  • Core handler function that executes the API search by making an authenticated GET request to Eolink's search endpoint `/search/apis?q={query}` and returns the array of matching APIs or empty on error.
    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 []; } }
  • Zod schema defining the input parameter 'query' as a required string for the search_apis tool.
    { query: z.string().describe("Search query") },

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

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