Start, end, settle a trip; Fahrtenbuch
tripA trip (round 693): one named period of one person; card payments of the company cards that person holds, receipts they scanned and their expense claims inside the window belong to it, and Trip ended closes it. action start: name, purpose (sales, marketing, investor, team, client, other), since_days and more_days (days before and after today), person (handle or name; default the person of this connection), client to re-invoice, headcount of a team trip. action more_day, end (on: a date, default today), reopen, change (name, purpose, client, headcount, ends_on). action put or take_out with target_type bank_line or document and target_id. action paid_by with document_id and by company or self. action pay_back: one expense claim of the person for the receipts they paid and did not claim, receipts attached, released as the owner's switches say. action invoice: a draft sales invoice to the client (or customer) with the trip's costs net of reclaimed VAT as lines, markup in percent, VAT by the customer's default. Fahrtenbuch (append only, a correction is a new entry): action logbook_on with vehicle and odometer; logbook_add with book_id, date, kind (business, private, commute), odometer_start, odometer_end or distance, from_place, to_place, route, purpose, partner, claim (business kilometres as a mileage claim); logbook_correct with entry_id, note and the fields to correct. action hint_yes (purpose, name) or hint_no with target_id the key of a trip proposed (the hints of the trips list): a flight, hotel or train on a card line or a scanned receipt opens the trip with its days. Per diem (round 724): action per_diem: the day and overnight allowances by the official table of the company's country (UK HMRC benchmark and overseas scale rates, German § 9 Abs. 4a EStG and the BMF table for 2026, Austrian § 26 Z 4 EStG and the Auslandsreisesätze) with the source of every figure; per_diem_set with country (the table's name or a two letter code, empty for home), city, leave and back (date and time), nights, meals (the company gave: breakfast, lunch, dinner counts), hotel_paid and, Austria, activity (aussendienst, fahrt, baustelle, ueberlassung, einsatzort: § 3 Abs. 1 Z 16b EStG 1988 under a Kollektivvertrag; empty a Dienstreise; einsatzort counts the person's days at that city, past 183 the Tagesgeld is taxable pay, LStR Rz 740; einsatzort_limit false turns the count off); per_diem_book books them on the person's expense claim (amount: a lower total; fx_rate for a table in another currency where no rate is on file). Day away (round 894): action day_away with on (the day), leave and back (HH:MM; back before leave is the next morning) or hours, city, country (empty at home), meals (the company gave), person, how (calendar, receipts, phone: what the day was seen in): the allowance by the same table (DE 14 EUR over 8 hours, AT 2.50 EUR each started hour over 3 up to 30, UK 5, 10 or 25 GBP) on the person's expense claim as a trip of that day, held or booked as the owner's switches say; by='preview' gives the figures only; a day of no allowance opens nothing. Round 731: action now, a trip from today (city and country optional, named from the place and month, open until Back); action past with days (yesterday, 3days, week) or on and ends_on (its days): a past trip, ended; tick with target_id a bank line of its days (by false to untick: by='off'); match with document_ids (receipts onto the trip and onto the one line of its days with their amount); flow with paid (card, private, mixed), client, client_paid (hotel, flight, train: left off the invoice), meals; private_day with date (by='off' to undo); advance with amount (paid out to the person's own account before the trip, so the claim leaves the difference); back_done; still_away; settle: Pay back (the claim of what the person paid, the private part to the person's account), proposed for release as the owner's switches say. Round 734: member with person (by='off' takes them off): a second person on the trip, each their own per diem (per_diem_book with person) and pay back; cancel with reason (client, illness, strike, other; by='off' undoes): costs stay, refunds join, no per diem; float_book: the ATM lines of the trip to the person's own account; cash_left with how (returned, keep); dinner with document_id, guests (names), occasion, advertising (Austria), staff_only: the client dinner booked by the country's rule (UK 7320 no VAT; DE 70/30 with full VAT and the Bewirtungsbeleg; AT 50 % with advertising); foreign_vat_book: hotel, fuel and conference VAT of another EU country kept to reclaim; charge_group with customer (a group company's name or id, empty takes it off), recharge: the intercompany pair at cost; per_diem_book with amount_paid above the table: the rest to payroll (UK pay or payroll_route='psa', DE 25 % flat tax, AT wages); attendees: guests the names of who took part in a team event (DE two events a person a year, AT 365 EUR a person a year, checked per person); staff_payroll: a team event over its line to payroll (Austria: a Sachbezug of each person, guests the names as in the payroll, not paid out; gifts on change: the Sachzuwendungen handed out, free to 186 EUR a person a year; UK payroll_route payroll: a payrolled benefit of each person, psa: the PAYE Settlement Agreement); calendar_connect with note (the private ICS link), calendar_off; scan_mails: booking mails read now; tfl_import with document_id (the uploaded TfL journey history CSV), person and paid (card: the export becomes the receipt of TfL's lines on the person's cards, or the card named in account, that its days add up to; own: an expense claim, a line a day, zero rated); vat_claim_add with country, name (the supplier), on (the bill's date), amount (gross), amount_paid (the VAT), account (the cost account), currency: a bill outside any trip joins the year's claim to that country, its VAT moved onto the reclaim account. vat_refund_mark with country and amount (the year); vat_refund_received with country, amount_paid (what came in) and amount (the year).
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": {
"action": "<action>"
},
"name": "trip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | ||
| on | No | ||
| how | No | ||
| back | No | ||
| city | No | ||
| date | No | ||
| days | No | ||
| kind | No | business | |
| name | No | ||
| note | No | ||
| paid | No | ||
| claim | No | ||
| gifts | No | ||
| hours | No | ||
| leave | No | ||
| meals | No | ||
| route | No | ||
| action | Yes | ||
| amount | No | ||
| client | No | ||
| guests | No | ||
| markup | No | ||
| nights | No | ||
| person | No | ||
| reason | No | ||
| account | No | ||
| book_id | No | ||
| company | No | ||
| country | No | ||
| ends_on | No | ||
| fx_rate | No | ||
| partner | No | ||
| purpose | No | ||
| trip_id | No | ||
| vehicle | No | ||
| activity | No | ||
| currency | No | ||
| customer | No | ||
| distance | No | ||
| entry_id | No | ||
| occasion | No | ||
| odometer | No | ||
| to_place | No | ||
| headcount | No | ||
| more_days | No | ||
| target_id | No | ||
| from_place | No | ||
| hotel_paid | No | ||
| since_days | No | ||
| staff_only | No | ||
| advertising | No | ||
| amount_paid | No | ||
| client_paid | No | ||
| document_id | No | ||
| target_type | No | ||
| document_ids | No | ||
| odometer_end | No | ||
| payroll_route | No | ||
| odometer_start | No | ||
| einsatzort_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||