get_job_history
Retrieve execution history for a specified SQL Server Agent job to troubleshoot failures and monitor run outcomes. Returns recent records with a configurable limit.
Instructions
Get execution history for a specific job
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": {
"jobName": "<jobName>"
},
"name": "get_job_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Number of history records to return | |
| server | No | SQL Server instance (e.g., "server\instance" or "server,port"). Uses default if not specified. | |
| jobName | Yes | Name of the job |