Skip to main content
Glama

Explain a cron expression and list next run times

cron_next
Read-onlyIdempotent

Parse a cron expression and return the next N run times in a time zone (DST-aware), plus a plain-English description. Validates syntax.

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_next"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoStart from this ISO time (default now)
countNoHow many next runs (default 5, max 50)
timezoneNoIANA time zone (default UTC)
expressionYes5-field cron or @daily/@hourly/@weekly/@monthly/@yearly

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and closed-world, so safety is covered; the description adds genuinely useful behavior beyond them: DST-awareness of the time-zone handling and the fact that a plain-English explanation comes back alongside the timestamps. It stops short of saying what happens on an invalid expression (error vs. flagged result), which is the main missing behavioral detail.

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?

Two tight sentences with the core action front-loaded and the auxiliary capabilities (DST handling, explanation, validation) appended in priority order. No filler or restatement of the name.

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 pure read-only computation tool with no output schema, the description covers inputs, the DST nuance, and the shape of the return (timestamps plus an English description). The one gap is error semantics for malformed expressions, which 'Validates syntax' gestures at without resolving.

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 all four parameters (expression, count, timezone, from) are already documented in the schema, including defaults and the 50 max. The description adds only the DST-aware qualifier on the time zone, and does not mention the 'from' start-time parameter at all, so it does not exceed the baseline.

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

Purpose4/5

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

States a concrete verb+resource: parses a cron expression, returns the next N run times, a plain-English description, and validates syntax. The purpose is unambiguous and clearly different from transformation utilities like timezone_convert, but it never explicitly routes against a sibling the way a 5 would.

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 only implied: the phrase 'Validates syntax' hints you can call it just to check an expression, and the return of human-readable descriptions hints at explanatory use. There is no explicit when-to-use/when-not guidance or named alternative.

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