Skip to main content
Glama

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
NameRequiredDescriptionDefault
account_idYes
domainNo
nameNo
phone_numberNo

Implementation Reference

  • 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)}"}

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/FromSmall2Big/Apollo-MCP'

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