{"uid":"cap_MBD6tuFivq9kyf_2Zz9Nx","slug":"writerslogic-time-bucket-check-60b056fc","name":"WritersLogic Time Bucket Check","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/time-bucket-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10,"description":"Last local date, inclusive."},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10,"description":"First local date, inclusive."},"labels":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$","maxLength":30},"maxItems":500,"description":"Local hour labels to check, e.g. 2026-03-08T02:00."},"timeZone":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_+-]*(/[A-Za-z0-9_+-]+){0,2}$","maxLength":64}}},"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_ENZq3u7Pvj5r0U258J_MM","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":"For a time zone and date range, identifies DST offset transitions, skipped/ambiguous hourly labels, and non-standard day lengths to prevent errors when grouping metrics or billing by local hour.","exampleAgentPrompt":"Before I aggregate our hourly usage metrics by local time, check the America/New_York timezone from 2025-01-01 to 2025-12-31 for any spring-forward or fall-back hours, non-standard day lengths, and validate these labels I've already generated: 2025-03-09T02:00 and 2025-11-02T01:00.","exampleUseCases":[{"title":"Pre-aggregation DST audit for metrics pipeline","prompt":"I'm about to group a year of server metrics by local hour for the Europe/London timezone — scan 2025-01-01 through 2025-12-31 and tell me which hourly labels never exist, which occur twice, and whether there are any 23- or 25-hour days I need to handle."},{"title":"Billing label validation before invoice generation","prompt":"We issue invoices bucketed by local hour in America/Los_Angeles and I want to make sure our labels are valid before we run billing for Q1 2026 — check 2026-01-01 to 2026-03-31 and verify these specific labels we generated: 2026-03-08T02:00, 2026-03-08T03:00, and 2026-11-01T01:00."},{"title":"Schedule safety check across DST boundary","prompt":"I'm building a recurring hourly job schedule for Australia/Sydney covering 2025-09-01 to 2025-11-30 — list every DST transition in that window and flag any hour labels that would be skipped or duplicated so I can adjust my scheduling logic."}],"resultDescription":"Returns a structured report covering: all DST offset transitions in the requested date range with their type (spring-forward or fall-back); a list of hourly labels that do not exist in local time (skipped during spring-forward); a list of hourly labels that are ambiguous (occur twice during fall-back); a list of non-standard-length days (23h, 24.5h, or 25h). If caller-supplied labels are provided, each label is flagged as valid, non-existent, or ambiguous.","failureModes":["Invalid or unrecognized timezone identifier returns an error","Date range exceeding 1100 days is rejected","More than 500 labels submitted returns a validation error","Malformed label format (not YYYY-MM-DDTHH:00) causes rejection","from date after to date returns an error","Payment failure via x402 protocol prevents processing"],"whenToPreferThis":"Use this endpoint when an AI agent needs to safely aggregate, bucket, or validate data by local hour or day before processing, and must identify DST-related pitfalls (skipped hours, duplicate hours, non-24-hour days) in a specific timezone and date range. It is especially valuable for billing, metrics, and scheduling systems where local-time grouping errors could cause data loss or double-counting. It does not perform the bucketing itself — it surfaces the anomalies so the agent can apply the appropriate policy.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:25.500Z","isFirstParty":false,"canonicalSlug":"writerslogic-time-bucket-check-60b056fc"}