Skip to main content
Glama

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
NameRequiredDescriptionDefault
first_nameYesFirst name
last_nameYesLast name
emailNoEmail address
titleNoJob title
organization_nameNoCompany name
linkedin_urlNoLinkedIn URL
phone_numbersNoPhone numbers

Implementation Reference

  • 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"}`, }, ], }; }
  • 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"], }, },
  • 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);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/masridigital/apollo.io-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server