Submit Timesheet
submit_timesheetFiles the signed-in person's timesheet for approval: the week (Monday to Sunday) containing weekOf, default this week, or an exact periodStart to periodEnd. Their entries in it lock and their approvers are notified; a role the workspace exempts from approval is approved at once. Refused when the period has no entries or is already filed. The result carries the week's total and the call that recalls it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "submit_timesheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | No | Not needed when signed in: these tools act for the signed-in person, and any other ID is refused. Applies only to a workspace connection with no signed-in user, naming whose timesheet this is. | |
| weekOf | No | Any day in the week to file, YYYY-MM-DD. Defaults to today in the person's time zone. | |
| periodEnd | No | Last day of an exact period, YYYY-MM-DD, inclusive. Needs periodStart. | |
| periodStart | No | First day of an exact period, YYYY-MM-DD. Needs periodEnd. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undo | No | The call that reverses this one, with its arguments. | |
| status | No | ||
| periodEnd | No | ||
| entryCount | No | ||
| totalHours | No | ||
| periodStart | No | ||
| submissionId | No | ||
| totalMinutes | No | ||
| autoFinalized | No |