langchain-lexio packages the Lexio API as LangChain tools. An agent built with it answers questions such as “which vans are free from 14 to 16 December, and how much?” or “which rentals start tomorrow?”, and can prepare a priced quote if you allow it.
Install
Tools
LexioToolkit() returns the six read-only tools. LexioToolkit(allow_quotes=True) adds lexio_create_quote: a quote fixes the price of one vehicle for one period and books nothing. No tool creates, changes or cancels a rental, a payment or a customer. Give the key only the scopes of the tools you use.
Build an agent
What the model must know
- Local time.
start_atandend_atare the agency’s local time without offset (2026-12-14T09:00:00), as everywhere in the API (Amounts, VAT and dates). - Indicative prices.
lexio_check_availabilityreturns the price with the default mileage package, excess and deposit. Only a quote fixes it. - Small outputs. Lists are capped by
max_results(20 by default) and trimmed to the useful fields;lexio_get_rentalreturns the full rental. - Errors. API errors are raised as typed exceptions carrying the Lexio
codeandrequestId(Errors). Rate limits are those of the key (Limits). - Cancelled rentals. Without a
statusfilter,lexio_list_rentalsincludes cancelled rentals.
Without LangChain
- Claude or ChatGPT connect to Lexio without code through the MCP server.
lexio-rentis the plain Python client these tools use.