check_log_freshness
Detect logs that haven't been updated within a specified time to find automation jobs that may have stopped running. This liveness check requires no instrumentation.
Instructions
Report logs that have not been written to recently.
A daily job whose log is 26 hours old has not run. This is the cheapest liveness check available and it requires no instrumentation.
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": {
"directory": "<directory>"
},
"name": "check_log_freshness"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | *.log | |
| directory | Yes | ||
| max_age_hours | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |