update_account
Modify existing account details in Apollo.io by updating specific fields like name, domain, or phone number while preserving unchanged information.
Instructions
Update an existing account in Apollo.io.
This tool updates account information with the provided data. Only specified fields will be updated.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| domain | No | ||
| name | No | ||
| phone_number | No |
Implementation Reference
- src/apollo_mcp_server.py:331-363 (handler)The main handler function for the 'update_account' MCP tool. It is decorated with @mcp.tool() for automatic registration and implements the logic to update an Apollo.io account using a PUT request to the API, building the data payload from provided optional parameters.@mcp.tool() async def update_account( account_id: str, name: Optional[str] = None, domain: Optional[str] = None, phone_number: Optional[str] = None ) -> Dict[str, Any]: """ Update an existing account in Apollo.io. This tool updates account information with the provided data. Only specified fields will be updated. """ endpoint = f"/v1/accounts/{account_id}" data = {} if name: data["name"] = name if domain: data["domain"] = domain if phone_number: data["phone_number"] = phone_number if not data: return {"error": "At least one field must be provided for update"} try: result = await apollo_client.make_request("PUT", endpoint, data=data) return result except httpx.HTTPStatusError as e: return {"error": f"API request failed: {e.response.status_code} {e.response.text}"} except Exception as e: return {"error": f"Request failed: {str(e)}"}