add_mileage_entry
Log a business mileage trip in ExpenseBot. Useful for realtors, consultants, contractors, and anyone who drives for work. Requires the user to have configured their mileage rate (cents/km or cents/mi) and unit (mi/km) in ExpenseBot Settings. The trip writes a row to their expense spreadsheet with the calculated dollar value. Use the Mileage and travel link from get_spreadsheet_url instead when the user needs Google Maps route calculation, mileage settings, repeated trips, calendar/rideshare import, per diem, or visual review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Tag for client/project attribution (optional) | |
| city | No | City (optional) | |
| date | No | Trip date (YYYY-MM-DD). Defaults to today. | |
| notes | No | Optional user-supplied context stored with the mileage entry. | |
| purpose | Yes | Business purpose / description of the trip (e.g., 'Client meeting at 1234 Main St') | |
| category | No | Override the user's default mileage category (optional) | |
| distance | Yes | Distance traveled in the user's configured unit (miles or km) | |
| roundTrip | No | If true, doubles the distance (return trip) | |
| destination | No | Destination address or location (optional) |