create_mileage
Add mileage entries to track travel distances for business, private, or commute purposes, including addresses, notes, and links to customers or projects for invoicing.
Instructions
Create a new mileage entry
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": {
"distance": "<distance>",
"type": "<type>",
"user": "<user>"
},
"name": "create_mileage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The mileage date (YYYY-MM-DD format, default: UTC today) | |
| fromAddress | No | The mileage from address | |
| toAddress | No | The mileage to address | |
| notes | No | The mileage notes | |
| distance | Yes | The mileage distance in KM | |
| billable | No | Whether the mileage can be invoiced (default: true) | |
| type | Yes | The mileage type | |
| customer | No | Customer to be linked with the mileage | |
| project | No | Project to be linked with the mileage | |
| vehicle | No | Vehicle to be linked with the mileage | |
| user | Yes | User to be linked with the mileage |