Skip to main content
Glama

Preview the next runs of a cron schedule

preview_cron
Read-onlyIdempotent

List the next run times of a 5- or 6-field cron expression (Croner dialect) in an explicit IANA timezone, including skipped and repeated wall-clock times at DST transitions. When to use: Use before deploying or explaining a cron schedule, especially across daylight-saving changes. Notes: No account or token needed. Example arguments: {"expr":"30 2 * * *","tz":"Europe/Rome","from":"2026-10-24T00:00:00Z","count":5}

Input Schema

NameRequiredDescriptionDefault
tzYesIANA timezone, e.g. Europe/Rome or UTC.
exprYes5 or 6 cron fields (seconds optional first); no aliases, ? or year field.
fromYesStart instant (ISO 8601); runs are strictly after it.
countNoRuns to return, 1–50.
dialectNoOnly 'croner' (default).
domAndDowNoRequire both day-of-month and day-of-week to match (default: either).

Output Schema

NameRequiredDescriptionDefault
runsYes
errorNo
policyYes
dialectYes
sourcesYes
completeYes
timezoneYes
domAndDowYes
transitionsYes
searchedUntilYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / count / description
      Added value: +"Runs to return, 1–50."
    • addedInput schema / properties / dialect / description
      Added value: +"Only 'croner' (default)."
    • addedInput schema / properties / domAndDow / description
      Added value: +"Require both day-of-month and day-of-week to match (default: either)."
    • addedInput schema / properties / expr / description
      Added value: +"5 or 6 cron fields (seconds optional first); no aliases, ? or year field."
    • addedInput schema / properties / from / description
      Added value: +"Start instant (ISO 8601); runs are strictly after it."
    • addedInput schema / properties / tz / description
      Added value: +"IANA timezone, e.g. Europe/Rome or UTC."
  2. Added

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely new context: the Croner dialect constraint, DST transition behavior (skipped and repeated wall-clock times), and the fact that no account or token is needed. It doesn't state the 50-item cap or output shape, but the cap lives in the schema and the output schema covers returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then clearly labeled 'When to use', 'Notes', and example blocks. Every sentence carries information an agent needs; the labeled structure makes it scannable in one pass.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, idempotent preview tool with an output schema and full schema coverage, the description covers the dialect, timezone requirement, DST nuance, and example invocation. Nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description raises it by adding a concrete example argument set that shows how expr, tz, from, and count combine, plus the 'strictly after from' semantics echoed in prose. Dialect and domAndDow remain schema-only, so it doesn't fully take over parameter explanation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'List the next run times of a 5- or 6-field cron expression (Croner dialect) in an explicit IANA timezone,' and adds the DST edge-case scope. No sibling tool does cron previewing, so this is instantly distinguishable from the surrounding validation/lookup tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The explicit 'When to use:' line gives a concrete trigger ('before deploying or explaining a cron schedule, especially across daylight-saving changes'). There are no competing siblings to route away from and no explicit 'when not to use' clause, which keeps it just short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources