update_account
Modify existing Apollo.io account details like name, domain, or phone number by providing the account ID and specific fields to update.
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 | ||
| name | No | ||
| domain | No | ||
| phone_number | No |
Implementation Reference
- src/apollo_mcp_server.py:331-364 (handler)The main handler function for the 'update_account' MCP tool. Decorated with @mcp.tool() for automatic registration and schema inference. Implements updating an Apollo.io account via PUT API request with optional fields: name, domain, phone_number.@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)}"}