@rockship/apollo-io-mcp
Version:
A powerful Model Context Protocol (MCP) server implementation for seamless Apollo.io API integration, enabling AI assistants to interact with Apollo.io data
35 lines • 1.23 kB
JavaScript
import { z } from "zod";
import { ErrorHandlerService } from "../services/error-handler.service.js";
export class PeopleSearchTool {
apolloClient;
name = "people_search";
title = "People Search";
description = "Use the People Search endpoint to find people based on person titles, seniorities, and organization domains.";
schema = {
q_organization_domains_list: z
.array(z.string())
.optional()
.describe("List of organization domains to search within"),
person_titles: z
.array(z.string())
.optional()
.describe("List of job titles to search for"),
person_seniorities: z
.array(z.string())
.optional()
.describe("List of seniority levels to search for"),
};
constructor(apolloClient) {
this.apolloClient = apolloClient;
}
async handler(args) {
try {
const data = await this.apolloClient.peopleSearch(args);
return ErrorHandlerService.createSuccessResponse(data);
}
catch (error) {
return ErrorHandlerService.handleToolError(error);
}
}
}
//# sourceMappingURL=people-search.tool.js.map