absence_overview
Check which employees are off and where coverage is low. Combines approved leaves, pending approvals, and department headcount into an absence calendar with risk flags and a verdict.
Instructions
Report who is off and where coverage is thin, in one call.
Composes approved hr.leave records overlapping the next days days,
pending approval requests, and per-department headcount into an
absence calendar, coverage-risk flags (share of a department off at
some point in the window >= coverage_threshold), and a verdict.
Args: days: Look-ahead window in days (default 14). coverage_threshold: Department share off in the window that counts as a coverage risk (default 0.3). timezone_offset: UTC offset for "today" (default 7 = Asia/Ho_Chi_Minh).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| timezone_offset | No | ||
| coverage_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |