cancel_process
Stop batch email processing jobs in Revenuebase by providing the process ID to halt ongoing or queued operations.
Instructions
Cancels an ongoing or queued batch email processing job using the Revenuebase API.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| process_id | Yes |
Implementation Reference
- server.py:109-125 (handler)The main handler function for the 'cancel_process' tool. It is decorated with @mcp.tool() for registration and handles canceling a batch email processing job by making a POST request to the Revenuebase API with the process_id.@mcp.tool() def cancel_process(process_id: int) -> dict: """ Cancels an ongoing or queued batch email processing job using the Revenuebase API. """ if not api_key: raise RuntimeError("Environment variable REVENUEBASE_API_KEY is not set") url = "https://api.revenuebase.ai/v1/cancel-process" 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()