batch_email_submission
Process batch email submissions efficiently by uploading a file reference via the Revenuebase API. Automates email workflows for streamlined communication.
Instructions
Submits a file reference for batch email processing using the Revenuebase API.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes |
Implementation Reference
- server.py:90-106 (handler)The main handler function for the 'batch_email_submission' tool. It is registered via the @mcp.tool() decorator and handles submitting a filename to the Revenuebase API endpoint for batch email processing, returning the API response.@mcp.tool() def batch_email_submission(filename: str) -> dict: """ Submits a file reference for batch email processing using the Revenuebase API. """ if not api_key: raise RuntimeError("Environment variable REVENUEBASE_API_KEY is not set") url = "https://api.revenuebase.ai/v1/batch-process-email" headers = { "x-key": api_key, "Content-Type": "application/json", "Accept": "application/json", } payload = {"filename": filename} resp = requests.post(url, json=payload, headers=headers, verify=False) resp.raise_for_status() return resp.json()