find_apis
Search for and assess APIs to integrate into your project based on specific functionality requirements and project context.
Instructions
Find and evaluate APIs that could be integrated into a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requirement | Yes | The functionality or requirement you're looking to fulfill | |
| context | No | Additional context about the project or specific needs |
Implementation Reference
- index.ts:328-345 (handler)Handler for the 'find_apis' tool. It extracts the requirement and optional context from arguments, constructs a search query for Perplexity API, calls the /search endpoint, and returns the response as text content.case "find_apis": { const { requirement, context = "" } = request.params .arguments as { requirement: string; context?: string; }; const response = await this.axiosInstance.post('/search', { query: `API for ${requirement} ${context}` }); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- index.ts:164-184 (registration)Tool registration entry for 'find_apis' in the listTools response, including name, description, and input schema definition.{ name: "find_apis", description: "Find and evaluate APIs that could be integrated into a project", inputSchema: { type: "object", properties: { requirement: { type: "string", description: "The functionality or requirement you're looking to fulfill", }, context: { type: "string", description: "Additional context about the project or specific needs", }, }, required: ["requirement"], }, },
- index.ts:168-183 (schema)Input schema for the 'find_apis' tool defining the expected arguments: requirement (required string) and optional context string.inputSchema: { type: "object", properties: { requirement: { type: "string", description: "The functionality or requirement you're looking to fulfill", }, context: { type: "string", description: "Additional context about the project or specific needs", }, }, required: ["requirement"], },