list_time_away
Retrieve time-away records by person ID and date range. Filter absenteeism data for specific employees or time periods.
Instructions
List time-away records. Optional filters: personId, startDate, endDate (YYYY-MM-DD).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| person_id | No | ||
| start_date | No | ||
| end_date | No | ||
| limit | No | ||
| skip | No |
Implementation Reference
- humaans_mcp/server.py:325-339 (registration)The tool 'list_time_away' is registered via @mcp.tool() decorator on an async function. It makes an API call to Humaans backend filtering time-away records.
@mcp.tool() async def list_time_away( person_id: str | None = None, start_date: str | None = None, end_date: str | None = None, limit: int = 100, skip: int = 0, ) -> Any: """List time-away records. Optional filters: personId, startDate, endDate (YYYY-MM-DD).""" return await client().list_page( "/time-away", filters={"personId": person_id, "startDate": start_date, "endDate": end_date}, limit=limit, skip=skip, ) - humaans_mcp/server.py:326-339 (handler)Handler function for the 'list_time_away' tool. Accepts optional person_id, start_date, end_date filters and pagination (limit/skip). Calls client().list_page('/time-away', ...).
async def list_time_away( person_id: str | None = None, start_date: str | None = None, end_date: str | None = None, limit: int = 100, skip: int = 0, ) -> Any: """List time-away records. Optional filters: personId, startDate, endDate (YYYY-MM-DD).""" return await client().list_page( "/time-away", filters={"personId": person_id, "startDate": start_date, "endDate": end_date}, limit=limit, skip=skip, ) - humaans_mcp/server.py:327-332 (schema)Input schema/parameters for list_time_away: person_id (str|None), start_date (str|None), end_date (str|None), limit (int, default 100), skip (int, default 0). Output type is Any.
person_id: str | None = None, start_date: str | None = None, end_date: str | None = None, limit: int = 100, skip: int = 0, ) -> Any: