API & MCP

Everything a person can do on Dayweave Recurrence Rule (RRULE) Expander, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://dayweaverecurrenceexpander.usefulweb.site/api/v1/calculate – run Dayweave Recurrence Rule (RRULE) Expander
  • GET https://dayweaverecurrenceexpander.usefulweb.site/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Dayweave Recurrence Rule (RRULE) Expander

Expands a recurrence rule from a calendar (RRULE, RFC 5545) — daily, weekly, monthly or yearly with INTERVAL, COUNT, UNTIL, BYDAY (also “last Friday”), BYMONTH, BYMONTHDAY and BYSETPOS — from a local start time in an IANA time zone, skips exception dates and lists every occurrence in local time and UTC with the offset, plus the rule in plain English.

Inputs of Dayweave Recurrence Rule (RRULE) Expander
FieldTypeDefaultDescription
rruletext"FREQ=MONTHLY;BYDAY=-1FR;COUNT=6"Rule (RRULE). Example: FREQ=WEEKLY;BYDAY=MO,WE;UNTIL=20270331 or FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-1 (last working day).
starttext"2026-09-25 16:00"First start (YYYY-MM-DD HH:MM, local time)
durationtext"1h"Duration
timeZonetext"Europe/Berlin"Time zone (IANA)
exdatestextarea—Skip these starts (one per line, YYYY-MM-DD or YYYY-MM-DD HH:MM)
fromtext—Show from (YYYY-MM-DD, empty = first start)
limitnumber20Show at most

Example request

Last Friday of each month across the clock change

curl -X POST https://dayweaverecurrenceexpander.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"rrule":"FREQ=MONTHLY;BYDAY=-1FR;COUNT=6","start":"2026-09-25 16:00","timeZone":"Europe/Berlin"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

  • Streamable HTTP endpoint: https://dayweaverecurrenceexpander.usefulweb.site/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: dayweave_recurrence_expander
  • Local stdio connector: node src/mcp-stdio.ts --tool=dayweave-recurrence-expander
{
  "mcpServers": {
    "dayweave-recurrence-expander": { "type": "http", "url": "https://dayweaverecurrenceexpander.usefulweb.site/mcp" }
  }
}