Create Leave Request
leave_request_createCreate a leave or PTO request for an employee. Choose from vacation, sick, personal, parental, unpaid, or training types. The request starts as pending manager approval.
Instructions
Create a new leave/PTO request for an employee. Types: 'vacation', 'sick', 'personal', 'parental', 'unpaid', 'training'. Dates must be ISO 8601 (YYYY-MM-DD). Status starts as 'pending' awaiting manager approval. / Crea una nueva solicitud de vacaciones/permiso. Estado inicial 'pending' pendiente aprobacion.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"employeeId": "<employeeId>",
"type": "<type>",
"startDate": "<startDate>",
"endDate": "<endDate>"
},
"name": "leave_request_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Leave type slug (vacation, sick, personal, parental, unpaid, training) / Tipo de permiso | |
| reason | No | Optional reason / Motivo opcional | |
| endDate | Yes | End date ISO 8601 (YYYY-MM-DD) / Fecha fin | |
| startDate | Yes | Start date ISO 8601 (YYYY-MM-DD) / Fecha inicio | |
| employeeId | Yes | Employee ID / ID del empleado |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| type | No | Leave type slug (vacation, sick, personal, etc.) | |
| reason | No | ||
| status | No | ||
| endDate | No | ||
| createdAt | No | ||
| decidedAt | No | ||
| decidedBy | No | ||
| startDate | No | ||
| updatedAt | No | ||
| employeeId | No | ||
| durationDays | No | ||
| decisionReason | No |