Skip to main content
Glama

Agent Data Tools: Utilities

Cron expression next run times: get the next run times of a cron schedule expression

cron_next
Read-only

Next run times (in UTC) of a standard 5-field cron expression (minute hour day month weekday; ranges, lists, steps and names like MON or JAN supported). Use to check a schedule before deploying it. Example: expr=*/15 9-17 * * MON-FRI. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not 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": {
      "expr": "<expr>"
    },
    "name": "cron_next"
  }
}

Input Schema

NameRequiredDescriptionDefault
exprYesThe cron expression
fromNoStart time, ISO (default now)
countNoHow many runs (1-50, default 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / count / maximum
      Previous value: -9007199254740991New value: +50
    • changedInput schema / properties / count / minimum
      Previous value: --9007199254740991New value: +1
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations' readOnly/destructive flags, the description discloses cost mechanics ($0.01/call via x402 USDC or card key via /credits), a free quota (first 10 free), failure handling (failed calls free), and that repeats incur charges — which explains the idempotentHint=false annotation. This is exactly the kind of billing and side-effect context annotations cannot convey.

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?

Purpose and dialect are front-loaded, followed by usage and a compact example, with billing last. The parenthetical clause in the first sentence is dense but load-bearing; nothing is clearly redundant.

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?

With no output schema, the description partially compensates by stating the result is next run times in UTC, and it covers cost and side effects. It stops short of specifying the return encoding (e.g. ISO list) or how 'from' affects the sequence, but an agent has enough to call it 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 100%, so baseline would be 3; the description still earns extra credit by defining the accepted cron dialect and providing a worked example (expr=*/15 9-17 * * MON-FRI) that demonstrates field ordering. The 'from' and 'count' parameters are left to the schema.

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 names the exact resource (next run times in UTC) and constrains it to a standard 5-field cron expression, so an agent knows precisely what it gets back. It also enumerates the supported syntax (ranges, lists, steps, names like MON/JAN), removing ambiguity about dialect.

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?

"Use to check a schedule before deploying it" supplies a concrete triggering context rather than leaving usage implied. There is no explicit when-not or named alternative, but no close sibling exists in the catalog, so the omission is minor.

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