batch_process_email_status
Retrieve the status of batch email processing jobs by providing the process ID. Useful for monitoring and managing email workflows efficiently.
Instructions
Retrieves status of batch email processing job.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| process_id | Yes |
Implementation Reference
- server.py:11-26 (handler)The main handler function for the 'batch_process_email_status' tool. It checks for API key, constructs the request to the Revenuebase API endpoint for batch email status, and returns the JSON response.def batch_process_email_status(process_id: int) -> dict: """ Retrieves status of batch email processing job. """ if not api_key: raise RuntimeError("Environment variable REVENUEBASE_API_KEY is not set") url = "https://api.revenuebase.ai/v1/batch-process-email-status" headers = { "x-key": api_key, "Content-Type": "application/json", "Accept": "application/json", } payload = {"process_id": process_id} resp = requests.post(url, json=payload, headers=headers, verify=False) resp.raise_for_status() return resp.json()
- server.py:10-10 (registration)Registers the batch_process_email_status function as an MCP tool using the FastMCP decorator.@mcp.tool()
- server.py:11-11 (schema)Function signature defining the input schema (process_id: int) and output (dict).def batch_process_email_status(process_id: int) -> dict: