update_lead_list
Modify lead list details including name, enrichment settings, or ownership within the Instantly.ai email outreach platform.
Instructions
Update lead list name, enrichment settings, or owner.
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": {
"params": "<params>"
},
"name": "update_lead_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/instantly_mcp/tools/leads.py:269-285 (handler)The core handler function that executes the update_lead_list tool by sending a PATCH request to the Instantly API to update lead list name, enrichment settings, or owner.
async def update_lead_list(params: UpdateLeadListInput) -> str: """ Update lead list name, enrichment settings, or owner. """ client = get_client() body: dict[str, Any] = {} if params.name is not None: body["name"] = params.name if params.has_enrichment_task is not None: body["has_enrichment_task"] = params.has_enrichment_task if params.owned_by is not None: body["owned_by"] = params.owned_by result = await client.patch(f"/lead-lists/{params.list_id}", json=body) return json.dumps(result, indent=2) - Pydantic schema defining the input parameters for the update_lead_list tool: list_id (required), optional name, has_enrichment_task, owned_by.
class UpdateLeadListInput(BaseModel): """Input for updating a lead list.""" model_config = ConfigDict(str_strip_whitespace=True, extra="ignore") list_id: str = Field(..., description="List UUID") name: Optional[str] = Field(default=None) has_enrichment_task: Optional[bool] = Field(default=None) owned_by: Optional[str] = Field(default=None) - src/instantly_mcp/server.py:93-93 (registration)MCP tool registration annotation specifying that update_lead_list is non-destructive.
"update_lead_list": {"destructiveHint": False}, - src/instantly_mcp/tools/leads.py:457-457 (registration)Tool function included in LEAD_TOOLS list for collection by get_all_tools() in server.py.
update_lead_list, - LEAD_TOOLS list that exports all lead-related tools, including update_lead_list, for dynamic loading in the server.
LEAD_TOOLS = [ list_leads, get_lead, create_lead, update_lead, list_lead_lists, create_lead_list, update_lead_list, get_verification_stats_for_lead_list, add_leads_to_campaign_or_list_bulk, delete_lead, delete_lead_list, move_leads_to_campaign_or_list, ]