Bookings
list_bookingsThe company's bookings (double-entry ledger entries), newest first, as one page with a total count. Filters: date_from / date_to (YYYY-MM-DD, inclusive, on the booking date — turn 'this month' etc. into an explicit range before calling); search (free text matched against a booking's description OR its number — good for a named item like 'rent', but it does NOT match account names or amounts); status. Each row has date, number, description, amount_home (integer, in cents of the company's home currency), currency symbol, and the debit/credit account labels. Use the returned total to answer whether or how many bookings match; do not sum amounts across many rows yourself. You CANNOT filter by income vs expense or by account here — if that is what the user wants, say you cannot look that up yet.
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": {
"company_id": "<company_id>"
},
"name": "list_bookings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Free text matched against booking description or number. | |
| status | No | Restrict to bookings in this state. | |
| date_to | No | Inclusive upper bound on the booking date, YYYY-MM-DD. | |
| per_page | No | Rows to return, 1-50 (default 25). | |
| date_from | No | Inclusive lower bound on the booking date, YYYY-MM-DD. | |
| company_id | Yes | The company to work on — one of list_my_companies' company_id values. |