Skip to main content
Glama
bcharleson

Instantly MCP Server

delete_account

Permanently remove an email account from the Instantly.ai platform. This action deletes all account data, removes it from campaigns, and cannot be reversed.

Instructions

🚨 PERMANENTLY delete an email account. CANNOT UNDO!

This action:

  • Removes the account from all campaigns

  • Deletes all account data

  • Cannot be reversed

Confirm with user before executing!

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Implementation Reference

  • The main async handler function that executes the delete_account tool by encoding the email and calling client.delete('/accounts/{email}') API endpoint. Returns JSON success response.
    async def delete_account(params: DeleteAccountInput) -> str:
        """
        🚨 PERMANENTLY delete an email account. CANNOT UNDO!
        
        This action:
        - Removes the account from all campaigns
        - Deletes all account data
        - Cannot be reversed
        
        Confirm with user before executing!
        """
        client = get_client()
        email_encoded = quote(params.email, safe="")
        result = await client.delete(f"/accounts/{email_encoded}")
        return json.dumps({"success": True, "deleted": params.email, **result}, indent=2)
  • Pydantic BaseModel schema for DeleteAccountInput, validates the required 'email' field with description warning of permanence.
    class DeleteAccountInput(BaseModel):
        """Input for deleting an account. ⚠️ PERMANENT - CANNOT UNDO!"""
        
        model_config = ConfigDict(str_strip_whitespace=True, extra="ignore")
        
        email: str = Field(..., description="Email to DELETE PERMANENTLY")
  • TOOL_ANNOTATIONS dictionary entry registering MCP annotations for delete_account tool: destructiveHint=True and confirmationRequiredHint=True.
    # Account tools
    "list_accounts": {"readOnlyHint": True},
    "get_account": {"readOnlyHint": True},
    "create_account": {"destructiveHint": False},
    "update_account": {"destructiveHint": False},
    "manage_account_state": {"destructiveHint": False},
    "delete_account": {"destructiveHint": True, "confirmationRequiredHint": True},
  • Includes delete_account in ACCOUNT_TOOLS list, which is used by get_all_tools() for dynamic tool registration in the MCP server.
    ACCOUNT_TOOLS = [
        list_accounts,
        get_account,
        create_account,
        update_account,
        manage_account_state,
        delete_account,
    ]

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