real_time_email_verification
Validate email addresses in real time using Revenuebase API. Ensure email authenticity and reduce bounce rates for accurate communication.
Instructions
Verifies a single email address using the Revenuebase API.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes |
Implementation Reference
- server.py:72-87 (handler)The handler function for the 'real_time_email_verification' tool, decorated with @mcp.tool() for registration. It verifies a single email using the Revenuebase API via HTTP POST request.def real_time_email_verification(email: str) -> dict: """ Verifies a single email address using the Revenuebase API. """ if not api_key: raise RuntimeError("Environment variable REVENUEBASE_API_KEY is not set") url = "https://api.revenuebase.ai/v1/process-email" headers = { "x-key": api_key, "Content-Type": "application/json", "Accept": "application/json", } payload = {"email": email} resp = requests.post(url, json=payload, headers=headers, verify=False) resp.raise_for_status() return resp.json()