Skip to main content
Glama

ScorpTech x402 Tools

Rrule Expand

rrule_expand
Read-onlyIdempotent

Expand an iCalendar RFC 5545 RRULE (recurring event rule, as used by Google Calendar, Outlook, CalDAV) into concrete occurrences in any IANA zone, DST-correct, with an English description. Supports FREQ (yearly … secondly), INTERVAL, COUNT, UNTIL, BYMONTH, BYWEEKNO, BYYEARDAY, BYMONTHDAY, BYDAY with ordinals (2MO, -1FR), BYHOUR / BYMINUTE / BYSECOND, BYSETPOS, WKST, plus EXDATE / RDATE and an after / before window. Accepts a bare rule or full DTSTART + RRULE lines. Returns JSON with: rule, dtstart, tz, text, count, occurrences, more, infinite. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/rrule-expand

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": {
      "rrule": "<rrule>"
    },
    "name": "rrule_expand"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNoUTC
afterNoOnly occurrences at or after this time
limitNoMax occurrences to return
rdateNoExtra occurrences
rruleYesRRULE value, optionally with DTSTART / RRULE / EXDATE / RDATE lines
beforeNoOnly occurrences at or before this time
exdateNoExcluded occurrences (local date-times or dates)
dtstartNoFirst occurrence (ISO 8601 local time in tz); overrides a DTSTART line

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations cover the read-only, idempotent, non-destructive, open-world profile. The description adds valuable behavior beyond them: DST-correct expansion, IANA zone handling, the capped 'more'/'infinite' result flags, and per-call pricing with the x402 payment requirement — pricing is the one trait an agent must know pre-call and it is disclosed.

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?

Front-loaded with the core purpose and input format before the capability and pricing sentences. The capability list is long but each clause conveys a distinct supported sub-rule; the only slack is minor repetition of the recurrence vocabulary.

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?

With no output schema the description compensates by enumerating the returned JSON keys (rule, dtstart, tz, text, count, occurrences, more, infinite), and it adds the pricing and payment/auth context an agent needs. Nothing material for correct invocation is missing.

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 description coverage is 88%, so the schema carries most semantics. The description adds meaning the schema does not: that tz accepts any IANA zone, that the expansion is DST-aware, and which RRULE clauses (BYSETPOS, WKST, ordinals like -1FR) the rrule string can contain.

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?

States a specific verb ('Expand') plus a precise resource ('iCalendar RFC 5545 RRULE') and identifies the domain (Google Calendar, Outlook, CalDAV). This clearly separates it from the sibling cf_expand, which from its name governs cron, not RRULE.

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?

Implicitly scopes usage by naming the exact grammar variants accepted (bare rule vs DTSTART + RRULE lines), the capabilities (EXDATE/RDATE, after/before window), and the transport (HTTP GET endpoint). It never states when to prefer another tool, but the RFC 5545 framing serves as a de facto exclusion for cron or other recurrence 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