Skip to main content
Glama

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
NameRequiredDescriptionDefault
sequence_idYesSequence ID
contact_idsYesArray of contact IDs to remove

Implementation Reference

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

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