Skip to main content
Glama

update_contact

Modify contact details in Apollo.io's B2B sales platform to maintain accurate prospect information for sales operations.

Instructions

Update an existing contact's information in Apollo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesContact ID
first_nameNoFirst name
last_nameNoLast name
emailNoEmail address
titleNoJob title
linkedin_urlNoLinkedIn URL

Implementation Reference

  • The core handler function for the 'update_contact' tool. It extracts the contact ID and update data from arguments, performs a PUT request to the Apollo API endpoint `/contacts/${id}`, retrieves the updated contact, and returns a structured response with a success message containing the contact's ID and name.
    private async updateContact(args: any) { const { id, ...updateData } = args; const response = await this.axiosInstance.put(`/contacts/${id}`, updateData); const contact = response.data.contact; return { content: [ { type: "text", text: `Contact updated successfully!\nID: ${contact.id}\nName: ${contact.first_name} ${contact.last_name}`, }, ], }; }
  • src/index.ts:482-515 (registration)
    Registration of the 'update_contact' tool in the getTools() method's array, including name, description, and detailed input schema defining parameters like id (required), first_name, last_name, email, title, linkedin_url.
    { name: "update_contact", description: "Update an existing contact's information in Apollo.", inputSchema: { type: "object", properties: { id: { type: "string", description: "Contact ID", }, 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", }, linkedin_url: { type: "string", description: "LinkedIn URL", }, }, required: ["id"], }, },
  • src/index.ts:90-91 (registration)
    Dispatch case in the tool request handler switch statement that routes 'update_contact' calls to the updateContact method.
    case "update_contact": return await this.updateContact(args);
  • Input schema for the 'update_contact' tool, specifying the object structure with properties for updating contact details and requiring the 'id' field.
    inputSchema: { type: "object", properties: { id: { type: "string", description: "Contact ID", }, 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", }, linkedin_url: { type: "string", description: "LinkedIn URL", }, }, required: ["id"], },

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