Track time
create_time_entryRecords time on a project task: for "track 2 hours on Website", call list_projects first and pass the project_task_id of the task on that project. hours takes a duration (2h, 1:30, 90m, 1.5); spent_on is an ISO date and defaults to today in the time zone of the workspace. The rate and the billable flag come from the project.
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_task_id": "<project_task_id>",
"hours": "<hours>"
},
"name": "create_time_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | Yes | A duration: `2h`, `1:30`, `90m`, `1.5`, or a number of hours | |
| notes | No | ||
| spent_on | No | Today of the workspace by default | |
| member_id | No | A teammate whose time the token may change; the member of the token by default | |
| project_id | No | The project of the task, when the client chose it: a project task of another project is `other_project` | |
| project_task_id | Yes | A `project_task_id` of a project of `GET /api/v1/projects` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| cost | No | ||
| hours | Yes | Decimal hours, such as `1.50` | |
| notes | No | ||
| state | Yes | ||
| amount | No | ||
| task_id | No | ||
| billable | No | ||
| currency | No | ||
| spent_on | Yes | ||
| client_id | Yes | ||
| cost_rate | No | ||
| member_id | Yes | ||
| task_name | No | ||
| invoice_id | No | ||
| project_id | Yes | ||
| updated_at | No | ||
| client_name | No | ||
| hourly_rate | No | ||
| inserted_at | No | ||
| member_name | No | ||
| project_name | No | ||
| cost_currency | No | ||
| invoice_number | No | ||
| project_task_id | Yes | ||
| billed_elsewhere_on | No |