Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

RRULE expander: RFC 5545 recurrence rule to concrete occurrence dates

rrule_expand
Read-onlyIdempotent

RRULE expander: expand an RFC 5545 recurrence rule into concrete occurrence timestamps. Accepts an RRULE string with DTSTART, an IANA time zone, and optional EXDATE and RDATE lists, and returns up to 200 occurrences as both local wall-clock times and UTC instants. Supports FREQ, INTERVAL, COUNT, UNTIL, BYDAY, BYMONTHDAY, BYMONTH, BYSETPOS and WKST. Occurrences moved by a DST gap carry gap: true. Rules needing over 50,000 candidate evaluations are rejected. Price: $0.05 per successful call, paid over x402 (USDC on Base).

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>",
      "dtstart": "<dtstart>",
      "zone": "<zone>"
    },
    "name": "rrule_expand"
  }
}

Input Schema

NameRequiredDescriptionDefault
zoneYesIANA time zone id. Accepted: an IANA time zone id, e.g. Europe/Amsterdam.
afterNoRFC 3339 instant; skip occurrences before it. Accepted: RFC 3339 timestamp.
countNoMaximum occurrences to return, 1-200. Default 20. Accepted: integer 1-200.
rdateNoComma-separated local datetimes to add. Accepted: at most 1024 characters.
rruleYesRFC 5545 RRULE, e.g. FREQ=MONTHLY;BYDAY=-1FR;COUNT=6. Accepted: at most 512 characters.
exdateNoComma-separated local datetimes to exclude. Accepted: at most 1024 characters.
dtstartYesFirst occurrence, YYYY-MM-DDTHH:MM:SS local to zone. Accepted: YYYY-MM-DDTHH:MM:SS.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / count / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / count / type
      Removed value: -"string"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnlyHint/idempotentHint annotations, it discloses the 200-occurrence cap, the 50,000 candidate-evaluation rejection rule, the DST gap flag on returned occurrences, and the $0.05 x402 payment requirement. These are exactly the behavioral facts an agent must know before calling, and none are derivable from annotations or schema.

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 content is front-loaded and dense — purpose first, then inputs, output shape, supported features, and limits. The supported-parts enumeration and pricing sentence are somewhat list-like, but every clause carries operational information rather than filler.

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 still specifies the return shape (local wall-clock times plus UTC instants, gap: true marker) and all hard limits. For a 7-parameter computation tool this covers everything needed to invoke it correctly and interpret results.

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 coverage is 100%, so the baseline is 3, but the description adds genuine meaning by enumerating which RRULE parts are supported (FREQ, INTERVAL, COUNT, UNTIL, BYDAY, BYMONTHDAY, BYMONTH, BYSETPOS, WKST) — information not present in the rrule parameter's schema text. It does not explain how EXDATE/RDATE local datetimes interact with the zone, which would have justified a 5.

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 opens with a specific verb and resource ('expand an RFC 5545 recurrence rule into concrete occurrence timestamps') and names the exact inputs and output form. It is clearly separable from calendar_convert or timezone_convert, which do single-point conversions rather than recurrence expansion.

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 description makes the use context clear by defining what inputs are accepted (RRULE + DTSTART + zone, optional EXDATE/RDATE) and what limits apply (200 occurrences, 50,000 evaluation cap). It never explicitly names an alternative tool or a when-not-to-use condition, so it falls short of a 5.

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.