Skip to main content
Glama

WritersLogic business agents

cron-explain

Cron parse, humanize and next N runs — Parses a POSIX 5-field or Quartz 6/7-field cron expression (plus macros @yearly/@monthly/@weekly/@daily/@hourly), returns a plain-English summary and the next N scheduled runs in a given IANA timezone, and reports if the expression never fires or lands on a DST-ambiguous wall-clock. Handles step syntax, named months and days, Quartz '?'/L/W/# extensions, and the POSIX dom-OR-dow rule when both fie

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": "cron-explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoISO-8601 instant: find runs strictly after this. Defaults to 1970-01-01T00:00:00Z.
countNoHow many future runs to return, 1-50. Default 5.
flavorNoWhich cron dialect. Defaults to posix (5 fields) or quartz (6/7 fields) based on token count.
timezoneNoIANA timezone name, e.g. 'America/Los_Angeles'. Defaults to UTC.
expressionYesThe cron expression or macro, e.g. '*/15 9-17 * * 1-5' or '@weekly'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it does substantial work: it names the return payload (plain-English summary, next N runs), and proactively discloses edge-case behavior — reporting expressions that never fire and flagging DST-ambiguous wall-clock landings. Undisclosed are error behavior on a malformed expression and whether DST-ambiguous runs are skipped or duplicated in the returned list.

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

Conciseness4/5

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

The em-dash construction front-loads the three core actions before the details, which is the right order for scanning. Every clause (macros, DST, never-fires) adds distinct information, though the final clause is truncated mid-word ('when both fie'), leaving a visibly broken sentence.

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

Completeness4/5

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

For a five-parameter, no-annotation, no-output-schema tool, the description covers the essentials: inputs accepted, output shape at a high level, and failure/edge modes like never-fires and DST ambiguity. What it omits — the concrete return structure and invalid-expression behavior — are real but modest gaps given the 100% schema coverage on the input side.

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 the baseline is 3, but the description goes further by characterizing the 'expression' parameter's accepted grammar (steps, named months/days, Quartz '?', 'L', 'W', '#', the POSIX dom-OR-dow rule, and macro aliases) and by tying the timezone parameter to IANA semantics. That grammar detail is meaning the schema's single example does not convey.

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?

The description states a specific set of verbs and resource — parse, humanize, and enumerate next-N runs for a cron expression — and enumerates the exact accepted dialects (POSIX 5-field, Quartz 6/7-field, @macros). An agent knows precisely what the tool produces (plain-English summary plus next N runs) and can tell it apart from unrelated siblings such as calendar-convert.

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

Usage Guidelines3/5

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

Applicability is implied well — you bring a cron expression and a timezone and get humanization plus upcoming runs — but there is no explicit guidance on when to prefer this over other time/date reasoning, nor any stated preconditions or exclusions. With no close sibling alternative named, the agent must infer the routing decision rather than read it.

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