# agent402.tools Cron Next Run Calculator

> agent402.tools Cron Next Run Calculator is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Parses a 5-field cron expression and returns the next N scheduled run times in UTC

## Facts

- Endpoint: POST https://agent402.tools/api/cron-next
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-cron-next-run-calculator-2d475073
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LpKIc6TTKsz4ZjxxcZqXP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-cron-next-run-calculator-2d475073 -d '<json body>'
```

Example prompt: What are the next 10 times this cron expression will run: '0 9 * * 1-5' starting from now?

## When to prefer this

Use this endpoint when you need to quickly preview or validate when a cron job will next execute without running a scheduler locally. Ideal for agents that need to confirm scheduling logic before deploying a job, audit existing cron configurations, or communicate human-readable next-run times to users. Prefer this over general-purpose compute when you specifically need cron expression evaluation with UTC output.

## Known failure modes

- Invalid cron expression returns a 4xx error with a parse error message
- Count out of range (less than 1 or greater than 20) may return an error or be clamped
- Malformed start time (non-ISO, non-epoch) may fail to parse and return an error
- Missing required 'expr' field returns a validation error
- Payment not included or insufficient results in 402 Payment Required

## How this service works

Parse a 5-field cron expression and return the next N run times (UTC).

## Output

A list of up to 20 upcoming UTC timestamps representing when the cron expression will next trigger, starting from the specified or current time.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "expr": {
   "type": "string",
   "description": "5-field cron: minute hour day-of-month month day-of-week"
  },
  "from": {
   "description": "Start time (epoch/ISO, default now)"
  },
  "count": {
   "type": "number",
   "description": "How many upcoming runs (1-20, default 5)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "expr": "*/15 9-17 * * 1-5",
  "next": [
   "2026-06-11T09:00:00.000Z"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-cron-next-run-calculator-2d475073/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
