zia-manage-time-interval

Installation
SKILL.md

ZIA: Manage Time Interval (find-or-create)

How to talk to the admin

  • Don't narrate tool calls, search filters, or internal lookup logic. Just confirm what was found or created.
  • Empty search results are authoritative — if zia_list_time_intervals(search="<name>") returns nothing for the exact name, treat it as "does not exist" and offer to create it. Do not fan out into broader searches.
  • Don't invent the schedule. Time-of-day fields (start_time, end_time) and days_of_week must come from the admin. If they didn't give a complete schedule, ask once for the missing fields. Don't guess "business hours = 9-5".
  • Don't translate clock-time to minutes silently in the explanation. Show the schedule back to the admin in human form (e.g. "08:00-17:00 Mon-Fri") and let the API call carry the minute conversion internally.
  • Time Intervals are independent of any specific rule. This skill returns the interval ID and stops. Attaching the ID to a rule is the calling skill's job, not this one's.

Naming constraint (ZIA-imposed)

ZIA rejects Time Interval names that contain digits or special characters. Allowed characters are ASCII letters and spaces only.

  • ✅ Valid: Business Hours, After Hours, Weekday Mornings, Weekend All Day, Maintenance Window, Lunch Break
  • ❌ Invalid (will be rejected): Mon-Fri 08:00-17:00, Q1 Maintenance, 9-5 Window, Business Hours — Mon-Fri

The zia_create_time_interval tool validates this client-side and raises ValueError before the API call, so the agent fails fast. If the admin proposes a name with digits or punctuation, silently rename it to a letters-only equivalent (e.g. "8am to 5pm window" → Business Hours) and confirm the renamed value back to the admin in the final reply. Never quietly drop the schedule details — those go on the start_time / end_time / days_of_week fields, not on the name.

Installs
2
GitHub Stars
49
First Seen
May 24, 2026