Skip to main content
Glama
rileyedwards77

Perplexity AI MCP Server

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
NameRequiredDescriptionDefault
requirementYesThe functionality or requirement you're looking to fulfill
contextNoAdditional context about the project or specific needs

Implementation Reference

  • 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"],
      },
    },
  • 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"],
    },

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/rileyedwards77/perplexity-mcp-server'

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