create_contact
Add new contacts to Apollo.io's B2B sales platform by providing essential details like name, email, job title, company information, and contact numbers.
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 handler function for the 'create_contact' tool. It sends a POST request to Apollo's /contacts endpoint with the provided arguments and returns a success message including the new contact's ID, name, and email.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 definition for the create_contact tool, specifying properties like first_name, last_name (required), 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)Tool registration in the getTools() method, defining the name, description, and input schema for the create_contact tool.{ 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 (registration)Dispatch case in the CallToolRequest handler that routes 'create_contact' calls to the createContact method.case "create_contact": return await this.createContact(args);