validate_cron
Validates a cron expression for common mistakes and silent failures, catching impossible schedules, leap-year edge cases, and OR-semantics gotchas. Returns warnings, suggestions, and estimated yearly run count.
Instructions
Deeply validate a cron expression for correctness and common mistakes. Catches: impossible schedules (e.g. day 31 in Feb), OR-semantics gotchas (dom AND dow both restricted = either matches, not both), midnight scheduling spikes, uneven step values (*/7), leap-year edge cases, weekday-only warnings, and more. Returns warnings, observations, optimization suggestions, and an estimated yearly run count. Use this BEFORE deploying a cron job to catch silent failures.
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": {
"expression": "<expression>"
},
"name": "validate_cron"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | The cron expression to validate. |