Skip to main content
Glama

Cron Expression Parser

CronExpressionParser
Read-only

Cron Expression Parser: Cron Expression Parser decodes 5-field and 6-field cron expressions into human-readable schedules. Pass any cron string to verify syntax, read plain-language timing explanations, and get the next five execution timestamps. (Cost: 1 credit)

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": "CronExpressionParser"
  }
}

Input Schema

NameRequiredDescriptionDefault
expressionYesThe cron expression to parse (5-field or 6-field format)

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNoError message, null on success
statusNo"ok" on success

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so safety is covered. The description adds genuine value beyond that by disclosing the credit cost and the nature of the results (next five execution timestamps, plain-language explanation, syntax validation). It does not say what happens on a malformed expression, which caps it below a 5.

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 sentences, front-loaded with the core purpose, followed by the concrete outputs and a cost note — all of which earn their place. The only waste is the redundant 'Cron Expression Parser: Cron Expression Parser decodes' restatement of the title.

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 one parameter, full schema coverage, an output schema, and explicit annotations, the definition needs little more. The remaining gap is error behavior for invalid expressions, which matters since 'verify syntax' is a headline use case, but that is a minor omission.

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 single 'expression' parameter is already documented as accepting 5-field or 6-field format. The description's 'Pass any cron string' and the 5/6-field mention restate the schema rather than adding format details or examples. Baseline 3 is appropriate.

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?

Uses a specific verb (decodes) and resource (5-field/6-field cron expressions) and states the output form (human-readable schedules). An agent can tell this is the parse/decode direction rather than the generate direction. It does not explicitly name the sibling CronExpressionGenerator as the counterpart, which keeps it from a 5.

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?

Lists three concrete things the caller gets (syntax verification, plain-language explanation, next five execution timestamps), which implies when to reach for it. There is no explicit when-not guidance and no named alternative (e.g., use CronExpressionGenerator to build an expression instead of reading one), so routing is left 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.