next_runs

Pack: crontab · Endpoint: https://gateway.pipeworx.io/crontab/mcp

Compute the next N run times (UTC ISO-8601) for a cron expression. Optionally start from a given time.

Parameters

NameTypeRequiredDescription
expressionstringyesA cron expression or @alias.
countnumbernoHow many upcoming runs to return (1-50, default 5).
fromstringnoOptional ISO-8601 start time (default: now).

Example call

Arguments

{
  "expression": "0 9 * * 1-5",
  "count": 5
}

curl

curl -X POST https://gateway.pipeworx.io/crontab/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"next_runs","arguments":{"expression":"0 9 * * 1-5","count":5}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('next_runs', {
  "expression": "0 9 * * 1-5",
  "count": 5
});

More examples

{
  "expression": "@hourly",
  "count": 10,
  "from": "2024-01-15T14:30:00Z"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "crontab": {
      "url": "https://gateway.pipeworx.io/crontab/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 15, 2026