Moltline TimeOps

v1.2.0
com.moltlinestudio/timeops Checked 3 days ago Published 2 months ago

Business days, meeting overlap and recurrence expansion, deterministic.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

business_days Business Days

Do business-day math that skips weekends and your holiday list. FREE. Either add N business days to start_date (set add_days), or count the business days between start_date and end_date (set end_date). Typical input {"start_date": "2026-03-02", "add_days": 10} returns {"result_date": "2026-03-16", "result_weekday": "Monday", ...}; with end_date set it returns {"business_days_between": N, "from": ..., "to": ...}. Use when the span must exclude weekends and named holidays. Not for plain calendar-day differences, which are a direct subtraction, and not for scheduling backward from a fixed deadl…

ParameterTypeDescription
start_date *stringAnchor date in ISO format YYYY-MM-DD, e.g. "2026-03-02".
add_daysintegerBusiness days to add; negative subtracts. Range -5000 to 5000. Ignored when end_date is provided.
end_datestringOptional end date, ISO YYYY-MM-DD. When set, the tool counts business days between start_date and end_date instead of adding.
holidaysarrayOptional list of ISO YYYY-MM-DD dates to treat as non-working days, e.g. ["2026-12-25"].

meeting_overlap Meeting Overlap

Find the shared meeting window across time zones inside working hours. FREE. Give one UTC offset per participant and an optional working-hours window. Typical input {"offsets_utc": [-8, 1, 5.5]} returns {"overlap_utc": ["HH:MM", "HH:MM"], "overlap_minutes": N, "local_windows": [...]}; when no shared window exists it returns {"overlap": null, "verdict": "..."}. Use when people in different zones need one shared slot. Not for converting a single known time between zones, and not for expanding a recurring series (recurrence_expand). Errors: on invalid, missing, or malformed input this tool neve…

ParameterTypeDescription
offsets_utc *arrayOne UTC offset per participant, each between -14 and +14; fractional offsets allowed, e.g. [-8, 1, 5.5].
work_endstringWorking day end, 24h HH:MM; must be later than work_start. Default "17:00".
work_startstringWorking day start, 24h HH:MM local in every zone. Default "09:00".

recurrence_expand Recurrence Expand

Expand a recurrence rule into a concrete list of ISO dates. FREE. Set every_days for a fixed interval, or weekly_on for specific weekdays. Typical input {"start_date": "2026-01-05", "every_days": 14, "count": 3} returns {"dates": ["2026-01-05", "2026-01-19", "2026-02-02"]}. Use when a recurrence rule has to become concrete dates. Not for counting working days in a span (business_days) and not for finding a slot across zones (meeting_overlap). Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": "<what is wrong and how to fix it>"} (for…

ParameterTypeDescription
start_date *stringFirst date of the series, ISO YYYY-MM-DD.
countintegerHow many dates to generate; values outside 1-60 are clamped into that range. Default 10.
every_daysintegerInterval in days between occurrences; use this OR weekly_on, not both.
weekly_onarrayWeekday names to recur on, e.g. ["mon", "thu"]; full names like "monday" also work.

deadline_planner Deadline Planner

Plan a task schedule backward from a hard deadline in business days. PREMIUM (license). Given ordered tasks with business-day durations, returns each task's start/end dates, the latest safe start, and slack from today. Typical input {"due_date": "2026-06-01", "tasks": [{"name": "Draft", "days": 3}, {"name": "Review", "days": 2}]} returns {"schedule": [...], "latest_safe_start": "YYYY-MM-DD", "slack_business_days_from_today": N, "verdict": "..."}. Use when the end date is fixed and steps must be placed backward from it. Not for forward counting from a start date (business_days) and not for re…

ParameterTypeDescription
due_date *stringThe deadline, ISO YYYY-MM-DD.
tasks *arrayOrdered list of task objects, each {"name": str, "days": int} where days is the business-day duration (1-365); the first 30 tasks are scheduled.
buffer_daysintegerBusiness days of safety margin kept free before due_date, clamped to 0-365. Default 1.
holidaysarrayOptional list of ISO YYYY-MM-DD dates treated as non-working days.

sla_due Sla Due

Compute when a ticket's SLA falls due, wall-clock or business-hours. PREMIUM (license). Typical input {"opened_at": "2026-03-02T15:30", "sla_hours": 8, "business_hours_only": true} returns {"due": "2026-03-03T15:30", "mode": "business hours 09:00-17:00"}; with business_hours_only false the mode is "wall-clock". Use when a response or resolution clock has started and one due moment is needed. Not for multi-step project schedules (deadline_planner). Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": "<what is wrong and how to fix it>"}…

ParameterTypeDescription
opened_at *stringWhen the SLA clock started, ISO datetime YYYY-MM-DDTHH:MM.
sla_hours *numberSLA length in hours; greater than 0, at most 24000; fractions allowed, e.g. 7.5.
business_hours_onlybooleanIf true, only time inside day_start-day_end on business days counts toward the SLA.
day_endstringBusiness day end, 24h HH:MM; must be later than day_start. Default "17:00".
day_startstringBusiness day start, 24h HH:MM. Default "09:00".
holidaysarrayOptional list of ISO YYYY-MM-DD dates that never count as working days.