bulk_enrich_organizations
Enrich multiple company profiles simultaneously by processing up to 10 domains in one request to gather comprehensive organization data.
Instructions
Bulk enrich multiple organizations at once.
This tool enriches multiple companies simultaneously based on their domains. Up to 10 domains can be processed in a single request.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domains | Yes |
Implementation Reference
- src/apollo_mcp_server.py:257-278 (handler)The handler function for the 'bulk_enrich_organizations' MCP tool. It is registered via the @mcp.tool() decorator, validates that no more than 10 domains are provided, and makes a POST request to the Apollo.io bulk enrich endpoint using the shared ApolloAPIClient.@mcp.tool() async def bulk_enrich_organizations(domains: List[str]) -> Dict[str, Any]: """ Bulk enrich multiple organizations at once. This tool enriches multiple companies simultaneously based on their domains. Up to 10 domains can be processed in a single request. """ if len(domains) > 10: return {"error": "Maximum 10 domains allowed per bulk enrichment request"} endpoint = "/api/v1/organizations/bulk_enrich" data = {"domains": domains} try: result = await apollo_client.make_request("POST", 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)}"}
- src/apollo_mcp_server.py:257-278 (registration)The @mcp.tool() decorator registers this function as an MCP tool named 'bulk_enrich_organizations' in the FastMCP server.@mcp.tool() async def bulk_enrich_organizations(domains: List[str]) -> Dict[str, Any]: """ Bulk enrich multiple organizations at once. This tool enriches multiple companies simultaneously based on their domains. Up to 10 domains can be processed in a single request. """ if len(domains) > 10: return {"error": "Maximum 10 domains allowed per bulk enrichment request"} endpoint = "/api/v1/organizations/bulk_enrich" data = {"domains": domains} try: result = await apollo_client.make_request("POST", 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)}"}