Log time
log_timeLog completed work hours to Harvest by providing project ID, task ID, date, and duration in decimal hours, with an optional note.
Instructions
Create a completed time entry: project, task, date, and duration in hours (e.g. 1.5). Use list_projects and list_project_tasks first to get ids. Add a short note describing the work.
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": {
"project_id": "<project_id>",
"task_id": "<task_id>",
"spent_date": "<spent_date>",
"hours": "<hours>"
},
"name": "log_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | Yes | Duration in decimal hours, e.g. 1.5 | |
| notes | No | What was worked on | |
| task_id | Yes | ||
| project_id | Yes | ||
| spent_date | Yes | YYYY-MM-DD |