{"uid":"cap_x88FN1uR5S38rH11JBPqX","slug":"writerslogic-recurrence-expand-f7f6f2ba","name":"WritersLogic Recurrence Expand","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/recurrence-expand?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$","maxLength":30,"description":"Local end of the window, inclusive."},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$","maxLength":30,"description":"Local start of the output window; required for cron, default DTSTART for rrule."},"kind":{"enum":["rrule","cron"],"type":"string"},"rule":{"type":"string","maxLength":800,"description":"rrule: 'DTSTART;TZID=America/New_York:19970902T090000\\nRRULE:FREQ=DAILY;COUNT=10\\nEXDATE;TZID=America/New_York:19970903T090000' or just 'FREQ=...' with dtstart. cron: '*/15 9-17 * * 1-5' (dom and dow both restricted match if either does)."},"limit":{"type":"integer","maximum":366,"minimum":1,"description":"Maximum occurrences returned (default 20)."},"other":{"type":"object","required":["kind","rule"],"properties":{"kind":{"enum":["rrule","cron"],"type":"string"},"rule":{"type":"string","maxLength":800},"dtstart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$","maxLength":30},"timeZone":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_+-]*(/[A-Za-z0-9_+-]+){0,2}$","maxLength":64},"durationMinutes":{"type":"integer","maximum":43200,"minimum":0}},"description":"A second rule to compare; conflicts are occurrences whose intervals overlap (equal instants when both durations are 0)."},"dtstart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$","maxLength":30,"description":"Local DTSTART when the rule text has none."},"exdates":{"type":"array","items":{"type":"string","maxLength":30},"maxItems":200,"description":"Extra excluded local date-times (YYYY-MM-DDTHH:MM[:SS]) or dates (YYYY-MM-DD, excludes that day)."},"timeZone":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_+-]*(/[A-Za-z0-9_+-]+){0,2}$","maxLength":64,"description":"IANA zone for local times (required for cron; for rrule unless DTSTART has TZID or Z)."},"blackouts":{"type":"array","items":{"type":"object","required":["start","end"],"properties":{"end":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"start":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10}}},"maxItems":50,"description":"Inclusive local date ranges to drop (holidays, freezes)."},"durationMinutes":{"type":"integer","maximum":43200,"minimum":0,"description":"Occurrence length, for conflict overlap."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_I0aJ3kDuVzeKqIfuLH2Ra","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Expands an RFC 5545 RRULE or crontab expression into up to 366 concrete occurrences within a time window, including UTC instants, DST flags, exclusions, plain-English summaries, and optional collision detection with a second rule.","exampleAgentPrompt":"Expand this RRULE for me — DTSTART;TZID=America/Chicago:20240101T090000 with RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=20 — and show me all the occurrence dates with their UTC times, noting any DST gaps or overlaps, up to 20 results.","exampleUseCases":[{"title":"Enumerate recurring meeting dates","prompt":"I have a weekly team standup defined by FREQ=WEEKLY;BYDAY=MO;UNTIL=20241231T000000Z starting on 2024-01-08 at 10am Eastern. Can you expand that RRULE and list all the dates it fires, with their UTC instants, through the end of 2024?"},{"title":"Detect cron job schedule conflicts","prompt":"I have two scheduled jobs that might overlap — the first is a cron '0 9 * * 1-5' and the second is 'FREQ=DAILY;INTERVAL=1;BYHOUR=9' starting 2024-06-01 at 9am, both in America/New_York. Can you expand the window from 2024-06-01 09:00 to 2024-06-30 09:00 and tell me which occurrences collide?"},{"title":"Human-readable recurrence summary","prompt":"Can you expand this RRULE — FREQ=MONTHLY;BYDAY=2MO — in the America/Los_Angeles time zone, starting 2024-01-01 00:00 through 2024-12-31 23:59, up to 12 occurrences, and also give me the plain-English description of what it means?"}],"resultDescription":"Returns a list of up to 366 concrete occurrences, each with its local date-time, UTC instant, DST gap or overlap flags, and optionally which occurrences collide with a second rule. Also includes a plain-English reading of the recurrence rule and skips invalid dates (e.g. Feb 30) and caller-supplied blackout dates.","failureModes":["Unsupported FREQ values (hourly, minutely) or extensions (BYHOUR, BYYEARDAY, BYWEEKNO, RDATE, EXRULE, Quartz cron, @macros) return an 'unsupported' error","Invalid RRULE syntax or malformed cron expression returns a parse error","Missing required 'from' for cron rules returns a validation error","Missing timeZone for cron rules returns a validation error","Window produces zero valid occurrences after EXDATE removal returns an empty list","Requesting more than 366 occurrences is rejected by schema validation"],"whenToPreferThis":"Use this endpoint when an AI agent needs to materialize abstract recurrence rules (iCalendar RRULE or crontab) into concrete dates without reading the system clock, especially when DST correctness, exclusion dates, plain-English summaries, or cross-rule collision detection are needed. Prefer it over manual date arithmetic or generic LLM reasoning when RFC 5545 compliance and deterministic UTC instants are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:30.344Z","isFirstParty":false,"canonicalSlug":"writerslogic-recurrence-expand-f7f6f2ba"}