batch_process_email_status
Check the status of batch email processing jobs in RevenueBase to monitor progress and completion.
Instructions
Retrieves status of batch email processing job.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"process_id": "<process_id>"
},
"name": "batch_process_email_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| process_id | Yes |
Implementation Reference
- server.py:11-26 (handler)The main handler function that executes the tool logic: checks for API key, constructs headers and payload, makes a POST 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)Implicit schema via type hints: input process_id as int, output as dict.
def batch_process_email_status(process_id: int) -> dict: