cancel_job_run
Stop EMR Serverless job runs that are stuck, running too long, or started with incorrect parameters. This tool sends an asynchronous cancellation request to transition jobs to CANCELLED state.
Instructions
Cancel a running or pending EMR Serverless job run.
Use this when a Spark job is stuck, taking too long, or was started with incorrect parameters. The cancellation is asynchronous — the job will transition to CANCELLING and then CANCELLED state.
Args: application_id: The EMR Serverless application ID. job_run_id: The job run ID to cancel. env: Target environment — 'dev', 'uat', 'test', or 'prod'. IMPORTANT: Do NOT guess or default. Ask the user which environment if not specified.
Returns confirmation of the cancellation request.
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": {
"application_id": "<application_id>",
"job_run_id": "<job_run_id>"
},
"name": "cancel_job_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| application_id | Yes | ||
| job_run_id | Yes | ||
| env | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |