create_contact
Add new contacts to Apollo.io with essential details including name, email, job title, company information, LinkedIn URL, and phone numbers to build and maintain your B2B sales database.
Instructions
Create a new contact in Apollo with details like name, email, title, company, etc.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first_name | Yes | First name | |
| last_name | Yes | Last name | |
| No | Email address | ||
| title | No | Job title | |
| organization_name | No | Company name | |
| linkedin_url | No | LinkedIn URL | |
| phone_numbers | No | Phone numbers |
Implementation Reference
- src/index.ts:1094-1106 (handler)The main handler function that executes the create_contact tool logic by posting contact data to Apollo's /contacts API endpoint and returning a success message with the created contact's details.private async createContact(args: any) { const response = await this.axiosInstance.post("/contacts", args); const contact = response.data.contact; return { content: [ { type: "text", text: `Contact created successfully!\nID: ${contact.id}\nName: ${contact.first_name} ${contact.last_name}\nEmail: ${contact.email || "N/A"}`, }, ], }; }
- src/index.ts:446-480 (schema)Input schema defining the parameters for the create_contact tool, including required first_name and last_name, and optional fields like email, title, organization_name, linkedin_url, and phone_numbers.inputSchema: { type: "object", properties: { first_name: { type: "string", description: "First name", }, last_name: { type: "string", description: "Last name", }, email: { type: "string", description: "Email address", }, title: { type: "string", description: "Job title", }, organization_name: { type: "string", description: "Company name", }, linkedin_url: { type: "string", description: "LinkedIn URL", }, phone_numbers: { type: "array", items: { type: "string" }, description: "Phone numbers", }, }, required: ["first_name", "last_name"], },
- src/index.ts:442-481 (registration)Registration of the create_contact tool in the getTools() method, specifying name, description, and input schema for MCP server.{ name: "create_contact", description: "Create a new contact in Apollo with details like name, email, title, company, etc.", inputSchema: { type: "object", properties: { first_name: { type: "string", description: "First name", }, last_name: { type: "string", description: "Last name", }, email: { type: "string", description: "Email address", }, title: { type: "string", description: "Job title", }, organization_name: { type: "string", description: "Company name", }, linkedin_url: { type: "string", description: "LinkedIn URL", }, phone_numbers: { type: "array", items: { type: "string" }, description: "Phone numbers", }, }, required: ["first_name", "last_name"], }, },
- src/index.ts:88-89 (handler)Dispatcher case in the main tool handling switch statement that routes create_contact requests to the specific createContact handler method.case "create_contact": return await this.createContact(args);