Xero Create Timesheet
xero_create_timesheetCreate an employee timesheet in Xero for a specified date range and earnings-rate units, enabling payroll tracking. Requires write access to be enabled.
Instructions
Create a timesheet. Requires XERO_WRITE_ENABLED=true.
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": {
"employee_id": "<employee_id>",
"start_date": "<start_date>",
"end_date": "<end_date>",
"timesheet_lines": "<timesheet_lines>"
},
"name": "xero_create_timesheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | Period end date (YYYY-MM-DD) | |
| start_date | Yes | Period start date (YYYY-MM-DD) | |
| employee_id | Yes | Employee UUID | |
| timesheet_lines | Yes | JSON: [{"EarningsRateID":"...","NumberOfUnits":[8,8,...]}] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |