Log a task
log_taskAdds one task (a work log entry) to one of the user's agents in ShiftLog.it and returns it as stored. It only adds: it never changes or deletes a task. The task appears on the timesheets the user sends their client, priced at the agent's hourly rate like any task logged in the app. The duration is hours, or startTime and endTime, or startTime and hours; the tool stores the duration it is given and has no default. IP Box marking (Polish tax relief) is not set by this tool; the user can add it in the app.
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": {
"description": "<description>"
},
"name": "log_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The day the work was done, YYYY-MM-DD, in the user's timezone. Defaults to today in the user's timezone. | |
| hours | No | The duration the user stated, in decimal hours: more than 0, at most 24, at most two decimals (1.5 = 1 hour 30 minutes). Required unless startTime and endTime are given. | |
| topic | No | A short title, up to 120 characters. Optional. | |
| agentId | No | The agent's id from list_agents. Defaults to the user's current agent. | |
| endTime | No | Clock time the work ended, HH:mm (24-hour), on the same day and after startTime. Needs startTime. | |
| startTime | No | Clock time the work started, HH:mm (24-hour). | |
| description | Yes | The timesheet entry as the user's client reads it: what was done and its outcome, usually a sentence or two of plain text, without code, file paths or secrets. Required. | |
| externalRef | No | The user's own reference for this work, such as a ticket or issue id (JIRA-123, #456) that the user or their work names, up to 200 characters. Optional. |