Skip to main content
Glama

x402 Toolbox

Explain a cron expression and list its next run times in any time zone

cron_next
Read-onlyIdempotent

Explain a cron expression and list its next run times in any time zone. Parses a 5-field cron expression (lists, ranges, steps, month/day names, @daily/@hourly/... macros, Vixie day-of-month OR day-of-week rule) and returns the next N run times (up to 50) in UTC and in the given IANA zone, DST-aware. Price: $0.003 USDC per call via x402 (eip155:8453).

Input Schema

NameRequiredDescriptionDefault
tzNoUTC
fromNoStart time (default now)
countNo
expressionYes

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?

Annotations already establish the safe, read-only, idempotent profile, so the bar is lower. The description adds real context beyond that: the parsing semantics (Vixie OR rule, macros), DST-awareness, a hard cap of 50 results, and an explicit per-call price ($0.003 USDC via x402 on eip155:8453) that an agent needs before invoking.

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?

Two tight sentences, front-loaded with the purpose and then capabilities plus pricing. Dense but every clause earns its place; the pricing tail is slightly tacked-on but necessary.

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?

No output schema exists, yet the description states what comes back (next N run times in UTC and the given IANA zone, DST-aware), which covers the return contract. Combined with pricing and parse-feature disclosure, an agent has enough to call this correctly.

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 only 25%, so the description must carry meaning and it largely does: it explains the expression format (5-field, lists/ranges/steps/names/macros), the output time zone semantics for tz, and the count ceiling of up to 50. Only 'from' is left to the schema's one-line description, which is adequately covered there.

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?

States specific verbs (explain, list) plus the resource (cron expression / next run times) and scope (any time zone). It is trivially distinguishable from the nearest siblings like time_convert and time_diff, which do not parse cron schedules.

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?

Usage is implied by the purpose – an agent can infer it should call this for cron parsing/scheduling questions – but there is no explicit 'use when' or 'use instead of X' guidance. With no cron-specific sibling to route against, the omission is minor but still leaves context to inference.

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.