get_failed_jobs
Retrieve SQL Agent jobs that failed in their last execution or within a specified recent time window to diagnose and troubleshoot job failures.
Instructions
Get jobs that failed in their last execution or recent history
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_failed_jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Look back this many hours for failures | |
| server | No | SQL Server instance (e.g., "server\instance" or "server,port"). Uses default if not specified. |