Skip to main content
Glama

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

Implementation Reference

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

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