Skip to main content
Glama

Agent Data Hub

Cron expression parser: plain English + next run times

util_cron
Read-onlyIdempotent

Check a cron schedule before you deploy it: validates a standard 5-field cron expression (or @hourly/@daily/@weekly/@monthly/@yearly), explains it in plain English and lists the next 1–50 run times in any IANA time zone, DST-correct (runs that fall into a DST gap are skipped, like cron does). Returns UTC and local times plus the expanded fields. Invalid expressions return 400 (not charged). Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.

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": "util_cron"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNoIANA time zone (default UTC), e.g. Asia/Dubai
fromNoOptional start time: ISO 8601 or unix seconds (default now)
countNoHow many next runs, 1–50 (default 5)
expressionYesCron expression, e.g. */15 9-17 * * 1-5

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses output content (UTC and local times plus expanded fields), DST gap semantics (runs in a gap are skipped, matching cron), error behavior (invalid expressions return 400 and are not charged), and cost/free-tier details. That is rare, decision-relevant context an agent cannot get from annotations alone.

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?

A single dense paragraph that front-loads the purpose and then layers validation, output, and pricing details. Slightly long, but the pricing sentence is decision-relevant rather than filler, so it earns its place.

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?

With no output schema, the description compensates by describing return contents (UTC/local times, expanded fields) and failure mode (400, uncharged). For a read-only, four-parameter utility, that covers everything an agent needs to call it correctly.

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

Parameters3/5

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

Schema coverage is 100%, so tz, from, count, and expression are already documented in the input schema. The description only reinforces a few of these (IANA time zone, 1–50 count) without adding new syntax or constraints, so the baseline 3 applies.

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 verb and resource set: validates a 5-field cron expression (or named macros), explains it in plain English, and lists the next run times. This is clearly distinguishable from sibling utilities like util_date_calc or util_time, since no other sibling deals with cron parsing.

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 opening clause 'Check a cron schedule before you deploy it' gives a clear use context, implying pre-deployment validation and preview. No alternatives or exclusions are named, but the sibling list contains no competing cron tool, so the routing risk is low.

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