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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "update_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Contact ID | |
| first_name | No | First name | |
| last_name | No | Last name | |
| No | Email address | ||
| title | No | Job title | |
| linkedin_url | No | LinkedIn URL |
Implementation Reference
- src/index.ts:1109-1122 (handler)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}`, }, ], }; } - src/index.ts:482-515 (schema)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);