remove_from_sequence
Remove specific contacts from an Apollo.io email sequence by providing the sequence ID and contact IDs to manage your outreach campaigns effectively.
Instructions
Remove contacts from a sequence. Provide sequence ID and contact IDs.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sequence_id | Yes | Sequence ID | |
| contact_ids | Yes | Array of contact IDs to remove |
Implementation Reference
- src/index.ts:920-936 (handler)The core handler function that executes the tool logic: makes a POST request to Apollo's API endpoint `/emailer_campaigns/{sequence_id}/remove_contact_ids` with the provided contact_ids and returns a success message.private async removeFromSequence(args: any) { const response = await this.axiosInstance.post( `/emailer_campaigns/${args.sequence_id}/remove_contact_ids`, { contact_ids: args.contact_ids, } ); return { content: [ { type: "text", text: `Successfully removed ${args.contact_ids.length} contact(s) from sequence ${args.sequence_id}`, }, ], }; }
- src/index.ts:80-81 (registration)In the CallToolRequestSchema handler, the switch case that dispatches calls to this specific tool's handler method.case "remove_from_sequence": return await this.removeFromSequence(args);
- src/index.ts:370-389 (registration)Tool registration in the getTools() method, including name, description, and input schema definition for MCP server listing.{ name: "remove_from_sequence", description: "Remove contacts from a sequence. Provide sequence ID and contact IDs.", inputSchema: { type: "object", properties: { sequence_id: { type: "string", description: "Sequence ID", }, contact_ids: { type: "array", items: { type: "string" }, description: "Array of contact IDs to remove", }, }, required: ["sequence_id", "contact_ids"], }, },
- src/index.ts:374-388 (schema)Input schema defining the required parameters: sequence_id (string) and contact_ids (array of strings). Used for validation in tool calls.inputSchema: { type: "object", properties: { sequence_id: { type: "string", description: "Sequence ID", }, contact_ids: { type: "array", items: { type: "string" }, description: "Array of contact IDs to remove", }, }, required: ["sequence_id", "contact_ids"], },