@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
24 lines • 808 B
JavaScript
import { z } from "zod";
import { ErrorHandlerService } from "../services/error-handler.service.js";
export class GetPersonEmailTool {
apolloClient;
name = "get_person_email";
title = "Get Person Email";
description = "Get email address for a person using their Apollo ID";
schema = {
apollo_id: z.string().describe("Apollo.io person ID"),
};
constructor(apolloClient) {
this.apolloClient = apolloClient;
}
async handler(args) {
try {
const data = await this.apolloClient.getPersonEmail(args.apollo_id);
return ErrorHandlerService.createSuccessResponse(data);
}
catch (error) {
return ErrorHandlerService.handleToolError(error);
}
}
}
//# sourceMappingURL=get-person-email.tool.js.map