Skip to main content
Glama

activate_campaign

Start sending email campaigns in Instantly.ai by activating a configured campaign with assigned accounts, leads, sequences, and schedule.

Instructions

Activate campaign to start sending.

Prerequisites (all required):

  1. At least one sender account assigned (email_list)

  2. At least one lead added to the campaign

  3. Email sequences configured

  4. Schedule configured

Use get_campaign to verify all prerequisites are met.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Implementation Reference

  • The primary handler function that executes the activate_campaign tool logic. It proxies the request to the Instantly API endpoint /campaigns/{campaign_id}/activate and returns the JSON response.
    async def activate_campaign(params: ActivateCampaignInput) -> str: """ Activate campaign to start sending. Prerequisites (all required): 1. At least one sender account assigned (email_list) 2. At least one lead added to the campaign 3. Email sequences configured 4. Schedule configured Use get_campaign to verify all prerequisites are met. """ client = get_client() result = await client.post(f"/campaigns/{params.campaign_id}/activate") return json.dumps(result, indent=2)
  • Pydantic input schema (BaseModel) for the activate_campaign tool, defining the required campaign_id parameter.
    class ActivateCampaignInput(BaseModel): """ Input for activating a campaign. Prerequisites: accounts, leads, sequences, schedule must be configured. """ model_config = ConfigDict(str_strip_whitespace=True, extra="ignore") campaign_id: str = Field(..., description="Campaign UUID to activate")
  • MCP tool registration annotation in the TOOL_ANNOTATIONS dictionary, specifying destructiveHint: False for the activate_campaign tool.
    "activate_campaign": {"destructiveHint": False},
  • List of campaign tools (CAMPAIGN_TOOLS) that includes activate_campaign, used by get_all_tools() for dynamic registration in the MCP server.
    CAMPAIGN_TOOLS = [ create_campaign, list_campaigns, get_campaign, update_campaign, activate_campaign, pause_campaign, delete_campaign, search_campaigns_by_contact, ]

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/bcharleson/instantly-mcp-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server