cancel_process
Stop or cancel a batch email processing job in Revenuebase by specifying the process ID. Use this tool to halt ongoing or queued tasks efficiently.
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)Handler function for the 'cancel_process' tool. It cancels a batch email processing job by sending 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()
- server.py:109-109 (registration)The @mcp.tool() decorator registers the cancel_process function as an MCP tool.@mcp.tool()