get_job_history
Retrieve execution history for a SQL Server Agent job. Specify the exact job name and optionally limit results to the most recent entries.
Instructions
Get execution history for a SQL Server Agent job. Requires membership in SQLAgentUserRole (or higher) in the msdb database.
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": {
"job_name": "<job_name>"
},
"name": "get_job_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Number of most-recent history entries to return (default: 50, max: 500) | |
| job_name | Yes | Exact job name |