get_job_history
Retrieve recent SQL Agent job and step execution history, including status, duration, and messages, with filters for job name, connection, and failed runs.
Instructions
Recent job/step executions with status, duration and messages (newest first).
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_job_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| job_name | No | ||
| connection | No | ||
| failed_only | No |