UNPKG

@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

32 lines 1.25 kB
import { z } from "zod"; import { ErrorHandlerService } from "../services/error-handler.service.js"; export class PeopleEnrichmentTool { apolloClient; name = "people_enrichment"; title = "People Enrichment"; description = "Use the People Enrichment endpoint to enrich data for 1 person"; schema = { first_name: z.string().describe("Person's first name").optional(), last_name: z.string().describe("Person's last name").optional(), email: z.string().describe("Person's email address").optional(), domain: z.string().describe("Company domain").optional(), organization_name: z.string().describe("Organization name").optional(), linkedin_url: z .string() .describe("Person's LinkedIn profile URL") .optional(), }; constructor(apolloClient) { this.apolloClient = apolloClient; } async handler(args) { try { const data = await this.apolloClient.peopleEnrichment(args); return ErrorHandlerService.createSuccessResponse(data); } catch (error) { return ErrorHandlerService.handleToolError(error); } } } //# sourceMappingURL=people-enrichment.tool.js.map