Skip to main content
Glama

ScorpTech x402 Tools

Cron Explain

cron_explain
Read-onlyIdempotent

Explain a standard 5-field cron expression in plain English and list its next N run times (default 5, max 20) in any IANA zone, DST-correct. Supports lists, ranges, steps (*/n, a-b/n), month/weekday names, 0 or 7 = Sunday and @yearly/@monthly/@weekly/@daily/@hourly/@reboot; applies cron's day-of-month OR day-of-week rule and notes it. Rejects invalid and never-firing expressions with a precise reason. Returns JSON with: expr, valid, normalized, description, fields, timezone, nextRuns, notes. Price: $0.01 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/cron-explain

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

Input Schema

NameRequiredDescriptionDefault
tzNoIANA zone for the run times (default UTC)
exprYes5-field cron expression or macro, e.g. "*/15 9-17 * * mon-fri" or "@daily". Alias: cron
fromNoStart after this time (ISO 8601 / epoch; default now)
countNoNumber of next runs, 1-20 (default 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), but the description adds substantial context they don't: DST-correct evaluation, application of cron's day-of-month OR day-of-week rule with an explanatory note, rejection of invalid/never-firing expressions with a precise reason, and the $0.01 USDC x402 payment per successful call plus an HTTPS alternative. Payment and failure semantics are exactly the kind of operational detail annotations cannot express.

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 paragraph, but well front-loaded: purpose first, then supported syntax, failure behavior, return shape, then pricing/endpoint. The price and HTTPS URL are justified (they affect whether an agent can call it), though the field enumeration slightly duplicates what a caller learns from a sample response.

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?

No output schema exists, so the description compensates by enumerating return keys (expr, valid, normalized, description, fields, timezone, nextRuns, notes). Combined with syntax coverage, failure semantics, payment model, and defaults, an agent has everything needed to call this correctly without opening anything else.

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 tz, expr, from, and count including defaults and the 1-20 range. The description restates the count default/max and timezone scope without adding syntax or edge-case detail beyond the schema. Baseline 3 is appropriate since the schema does the heavy lifting.

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?

Opens with a specific verb+resource pair: "Explain a standard 5-field cron expression in plain English and list its next N run times." The scope words "standard 5-field" and "in any IANA zone, DST-correct" make it immediately distinguishable from adjacent text-analysis tools such as regex_explain.

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?

The domain of applicability is clear (standard 5-field cron and macros @yearly/@daily/etc.), and the description implies the boundary by specifying micro-syntax support. What is missing is explicit routing guidance — it never says to use a different tool for Quartz 6-field or natural-language scheduling, nor names an alternative. Clear context without exclusions lands at 4.

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