Add time
add_timeAdd a time entry to a ticket. Provide duration_min, or provide start_time + end_time to auto-calculate it. date defaults to today. Pass user_id to book the time FOR ANOTHER PERSON of your tenant (admin/team lead, or the project lead from the project's funding data only): the entry is marked as entered by you and unconfirmed; the person sees it in /app/timesheets, can change it, and confirms it by signing the monthly timesheet. Works in batch_tools (up to 200 entries).
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": {
"ticket_id": "<ticket_id>"
},
"name": "add_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date of the work in YYYY-MM-DD format (default: today) | |
| user_id | No | Optional: support_users.id of the person the time belongs to (same tenant). Omit for yourself. Booking for someone else requires admin/team lead or the project lead role. | |
| category | No | Effort category for plan-vs-actual: work = human work (default), steering = human time spent briefing/steering Claude, agent = Claude's own runtime | |
| end_time | No | End time in HH:MM format (e.g. 11:30). Used with start_time to auto-calculate duration_min. | |
| ticket_id | Yes | Ticket UUID | |
| commit_sha | No | Optional git commit SHA to link to this time entry | |
| start_time | No | Start time in HH:MM format (e.g. 09:00). Used with end_time to auto-calculate duration_min. | |
| description | No | Optional description of the work done | |
| duration_min | No | Time spent in minutes. Required unless start_time and end_time are both provided. | |
| commit_repo_full_name | No | GitHub repo (owner/repo) the commit_sha belongs to — must already be linked to the ticket's project. Omit to use the project's default repo. |