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 that destructures the args to separate id and updateData, makes a PUT request to Apollo API endpoint `/contacts/${id}` with the update data, and returns a success message with the updated 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}`, }, ], }; }
  • The input schema definition for the update_contact tool, specifying the required 'id' parameter and optional fields for updating contact details like name, email, title, and 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)
    The switch case registration that maps incoming tool calls with name 'update_contact' to the execution of the updateContact handler method.
    case "update_contact": return await this.updateContact(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