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.
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": "cancel_process"
}
}Input 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()