Skip to main content
Glama

cron_next_runs

Read-onlyIdempotent

utilpeek: the next run times of a cron expression. For iCalendar RRULEs use expand_rrule. 5-field cron (minute hour day-of-month month day-of-week), a macro (@daily, @hourly, ...) or AWS cron(...) with year *; no seconds, no R/H. Day-of-month and day-of-week use Vixie OR semantics; one that never fires (Feb 30) is a 422 no_next_run (not charged); rare ones return what exists with exhausted: true. An invalid expression, start or zone is a 422 (not charged). Typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/cron-next-run-api.html

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

Input Schema

NameRequiredDescriptionDefault
countNoNumber of next runs.
startNoISO 8601 start (default now).
timezoneNoIANA time zone (default UTC).
expressionYes5-field cron, macro or AWS cron(...), e.g. */15 9-17 * * MON-FRI.

Output Schema

NameRequiredDescriptionDefault
runsNo
countNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
startNo
sourceNo
timezoneNo
exhaustedNo
expressionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expression / description
      Previous value: -"5-field cron expression or macro, e.g. */15 9-17 * * MON-FRI."New value: +"5-field cron, macro or AWS cron(...), e.g. */15 9-17 * * MON-FRI."
  2. Changed12 schema fields changed
    • changedInput schema / properties / count / description
      Previous value: -"Number of next runs (1-50, default 10)."New value: +"Number of next runs."
    • removedInput schema / properties / count / title
      Removed value: -"Count"
    • removedInput schema / properties / expression / title
      Removed value: -"Expression"
    • removedInput schema / properties / start / default
      Removed value: -null
    • changedInput schema / properties / start / description
      Previous value: -"Optional ISO 8601 start (default now)."New value: +"ISO 8601 start (default now)."
    • removedInput schema / properties / start / title
      Removed value: -"Start"
    • removedInput schema / properties / timezone / default
      Removed value: -null
    • changedInput schema / properties / timezone / description
      Previous value: -"Optional IANA time zone (default UTC)."New value: +"IANA time zone (default UTC)."
    • removedInput schema / properties / timezone / title
      Removed value: -"Timezone"
    • removedInput schema / title
      Removed value: -"cron_next_runsArguments"
    • removedOutput schema / properties / runs / items
      Removed value: -{
      -  "properties": {
      -    "time": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "unix": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "utc": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / source / properties
      Removed value: -{
      -  "library": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "license": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "tzdata": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "url": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "count": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "exhausted": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "expression": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "runs": {
      +      "items": {
      +        "properties": {
      +          "time": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "unix": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "utc": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "properties": {
      +        "library": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "license": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "tzdata": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "url": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "start": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "timezone": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  4. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds substantial behavior: 422 no_next_run for never-firing expressions, 422 for invalid expression/start/zone, non-charging on errors, Vixie OR semantics for day-of-month vs day-of-week, the `exhausted: true` flag on rare expressions, typical latency, price, and the free-tier limit.

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?

Every sentence carries information — format, semantics, error cases, economics — with no filler, and the purpose and sibling routing are front-loaded. It is a dense single block that is slightly hard to scan, which keeps it from a 5.

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 an output schema present, return values need not be described, and the definition nevertheless covers the one non-obvious result state (`exhausted`) plus all error paths and cost model. Nothing an agent needs to call this 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 the baseline is 3; the description earns above that by spelling out the `expression` grammar (5-field, macro, AWS cron, no seconds, no R/H, Vixie day-field OR) and by stating that an invalid `start` or `timezone` produces a 422. It adds real meaning beyond the schema's terse field notes without documenting every edge.

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 opening clause gives a concrete verb plus resource ('the next run times of a cron expression') and immediately distinguishes it from the sibling expand_rrule for iCalendar RRULEs. An agent can select it without inspecting either schema.

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

Usage Guidelines5/5

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

It names the alternative (expand_rrule) and the condition that selects it, and additionally scopes the accepted expression dialects (5-field, macros, AWS cron with year *, no seconds, no R/H). When-to-use and when-not-to-use are both explicit.

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