aap_get_failed_jobs
Retrieve failed AAP jobs from the last N hours, filterable by job template and limit. Get job IDs, names, and timestamps to troubleshoot automation failures.
Instructions
List failed AAP jobs within the last N hours.
Example: "Show failed jobs from the last 24 hours"
Args: params (GetFailedJobsInput): - hours (int): Look-back window in hours (default 24) - limit (int): Max results (default 20) - job_template (Optional[str]): Filter by template name
Returns: str: JSON with list of failed jobs including id, name, started, finished, elapsed, and template name.
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": {
"params": "<params>"
},
"name": "aap_get_failed_jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |