Add a parts or labour line
work_order_add_lineAdd one line: parts with quantity, unit_cost_minor in whole MINOR units and optional markup, or labour with hours and rate_minor. A line on an invoiced order, or dated before the request, is refused.
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": {
"work_order": "<work_order>",
"kind": "<kind>",
"description": "<description>"
},
"name": "work_order_add_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The day this line was worked or fitted, YYYY-MM-DD | |
| kind | Yes | parts for materials, labour for time on the job | |
| note | No | ||
| hours | No | labour only: hours worked, e.g. 3.5 | |
| quantity | No | parts only: how many. A negative or zero quantity is refused | |
| rate_minor | No | labour only: the hourly rate in whole minor units. Omit only once the shared business profile carries a default rate | |
| work_order | Yes | The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs | |
| description | Yes | What it is, e.g. 3kW immersion element, or Second fix and test | |
| markup_percent | No | parts only: percent added to the UNIT cost before billing. Default 0 | |
| unit_cost_minor | No | parts only: what one costs YOU, in whole minor units. 1299 is EUR 12.99 |