Cron Explainer

Explain a cron expression in plain English and list its next run times.

Pay by wallet (x402) cron-explain

Example

Input
{
  "timezone": "Europe/Stockholm",
  "cron_expression": "0 9 * * 1-5"
}
Answer
{
  "is_valid": true,
  "timezone": "Europe/Stockholm",
  "next_runs": [
    "2026-03-09T09:00:00.000Z",
    "2026-03-10T09:00:00.000Z",
    "2026-03-11T09:00:00.000Z",
    "2026-03-12T09:00:00.000Z",
    "2026-03-13T09:00:00.000Z"
  ],
  "explanation": "At 9:00, Monday through Friday",
  "cron_expression": "0 9 * * 1-5",
  "field_breakdown": [
    {
      "field": "minute",
      "value": "0",
      "meaning": "at 0"
    },
    {
      "field": "hour",
      "value": "9",
      "meaning": "at 9"
    },
    {
      "field": "day of month",
      "value": "*",
      "meaning": "every value"
    },
    {
      "field": "month",
      "value": "*",
      "meaning": "every value"
    },
    {
      "field": "day of week",
      "value": "1-5",
      "meaning": "range 1-5"
    }
  ]
}

Inputs

FieldTypeRequiredWhat it is
num_nextintegerNoNumber of next runs (default 5)
timezonestringNo—
cron_expressionstringYesCron expression (5-7 fields)

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
is_validbooleanAlways (present in every successful answer)
next_runsarrayAlways (present in every successful answer)
explanationstringAlways (present in every successful answer)
field_breakdownarrayAlways (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "cron-explain",
    "inputs": {
      "timezone": "Europe/Stockholm",
      "cron_expression": "0 9 * * 1-5"
    },
    "max_price_cents": 2
  }'

Limitations

  • Non-standard cron extensions may be misread

    Explains standard 5-field cron syntax — non-standard extensions (seconds, years, L/W/# operators) may not be fully explained

    What to do instead: Specify the cron implementation (Quartz, AWS EventBridge, systemd) for accurate explanation of non-standard fields

Related tools