Skip to main content
Glama

MiaoToolbox (妙用盒)

Cron 表达式解析与触发推算(妙用盒)

parse_cron
Read-onlyIdempotent

解析 5 位标准 Unix Cron 与 6 位秒级 Cron,输出中文语义解释及指定 IANA 时区未来 1–20 次触发时间。严格遵循 DOM+DOW OR 语义,支持夏令时边界与闰日推算。

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

Input Schema

NameRequiredDescriptionDefault
fromNo可选基准时间(ISO 8601 字符串,默认当前时间)
countNo推算未来触发次数(1–20,默认 5)
timeZoneNoIANA 时区 ID,默认 Asia/ShanghaiAsia/Shanghai
expressionYes5 位或 6 位 Cron 表达式(支持 @daily/@hourly 等宏)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real operational context beyond that: strict DOM+DOW OR semantics, DST boundary handling and leap-day computation, which shape how results must be read. It still says nothing about failure behaviour for invalid expressions, which matters for a parser.

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?

A single dense sentence that front-loads the accepted formats and then the outputs. Every clause carries information; it is only slightly cramped by packing semantics, timezone and edge-case claims together.

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?

There is no output schema, and the description compensates by naming both return components (Chinese semantic explanation and future trigger times). Combined with the annotation-covered safety profile and full schema coverage, an agent has everything needed to call it correctly.

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 expression, timeZone, count and from are all documented in the schema with defaults and bounds. The description restates the 1-20 count and the timezone input but adds no format syntax or edge-case meaning beyond the schema, so the baseline 3 applies.

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 and resource ('解析 5 位标准 Unix Cron 与 6 位秒级 Cron') and names both outputs (Chinese semantic explanation plus next 1-20 trigger times in a given IANA timezone). This clearly separates it from arithmetic siblings such as calculate_date or convert_timezone.

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 implied by the specialisation: an agent can infer it should be called whenever a cron expression needs interpretation rather than date math. However, there is no explicit when-to-use/when-not-to-use guidance and no named alternative for non-cron scheduling formats.

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