Skip to main content
Glama
FromSmall2Big

Apollo.io MCP Server

get_account_by_id

Retrieve detailed account information from Apollo.io using a specific account ID to access contact data, custom fields, and associated personas for sales and marketing activities.

Instructions

Retrieve detailed information for a specific account by ID.

This tool fetches comprehensive account data including contact information, custom fields, and associated personas.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYes

Implementation Reference

  • The primary handler function for the 'get_account_by_id' tool. It is decorated with @mcp.tool() which registers it with the FastMCP server. The function retrieves account details from the Apollo.io API by making a GET request to /v1/accounts/{account_id} using the shared ApolloAPIClient instance.
    @mcp.tool()
    async def get_account_by_id(account_id: str) -> Dict[str, Any]:
        """
        Retrieve detailed information for a specific account by ID.
        
        This tool fetches comprehensive account data including contact information,
        custom fields, and associated personas.
        """
        endpoint = f"/v1/accounts/{account_id}"
        
        try:
            result = await apollo_client.make_request("GET", endpoint)
            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