Skip to main content
Glama

validate_cron_expression

Validates 5/6-field cron expressions and computes next exact UTC execution timestamps, eliminating timezone errors. Use for scheduling automation with precise timing.

Instructions

Parses standard 5/6-field cron expressions and calculates the next N exact UTC execution timestamps without timezone bugs. (0.005 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses a key behavioral trait: it avoids timezone bugs by using UTC. It also mentions a cost of 0.005 USDC on Base L2, which is useful operational context. However, it does not disclose what happens on invalid input (error vs. empty result), whether it supports N as a parameter or fixed count, or whether it requires a paymentSignature for every call. These are meaningful gaps for a paid tool.

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?

The description is a single, information-dense sentence that front-loads the core function and then adds the timezone guarantee and cost. It earns its place with no fluff. The only minor issue is that the cost parenthetical, while useful, is slightly tangential to the core purpose and could be seen as a distraction.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema and no annotations, the description should explain what the agent will receive and any side effects. It explains the output conceptually (next N UTC timestamps) but not the exact return shape. It also does not explain the payment flow beyond mentioning the cost, which is critical for a paid tool. The description is adequate for a simple validation tool but leaves the payment and return-format details to be discovered.

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 description coverage is 100%, so the schema already documents both parameters. The description adds the semantic context that the payload is a cron expression and the output is UTC timestamps, which helps an agent understand what to put in the payload. However, it does not clarify how N is specified (e.g., is N part of the payload JSON?) or what format the payload should take (raw string vs. JSON). The description adds some value but does not fully compensate for the ambiguity in the generic 'payload' parameter.

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 ('parses'), a specific resource ('standard 5/6-field cron expressions'), and a concrete outcome ('calculates the next N exact UTC execution timestamps without timezone bugs'). This clearly distinguishes it from sibling tools like validate_code_syntax or generate_totp_token, which operate on entirely different inputs.

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?

The description implies when to use it: whenever an agent needs to validate a cron expression or compute its next execution times. However, it does not explicitly state when not to use it or name alternatives. Given the large sibling list, some explicit exclusion (e.g., 'for timezone-aware scheduling use X') would have been stronger, but the core use case is clear enough.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools