Skip to main content

Hotel Stay Tools

Manage hotel stay records — accommodation bookings with check-in/check-out dates, room counts, and associated CO₂e emissions. This is Scope 3 Category 6 (business travel) data.

list_hotel_stays

List hotel stay records with optional filters. Parameters: Example response:
Key response fields: Example prompts:

Write Operations

create_hotel_stay

Create a hotel stay record for Scope 3 accommodation emissions. CO₂e is calculated based on the country and number of nights — the response will initially show co2e as null. Duration can be specified in two ways:
  • Provide check_out_date directly.
  • Provide nights — the check-out date is calculated as check_in_date + nights.
At least one of these must be given. Parameters:
You can provide either check_out_date or nights — the backend calculates the other. If both are omitted, the API returns a validation error.
CO₂e emissions are calculated in the background after creation. The initial response will show co2e: null. Call list_hotel_stays after a few seconds to see the calculated value.
Example response:
Example prompts:
Common errors:

update_hotel_stay

Update an existing hotel stay record. Only the fields you provide are changed. CO₂e is recalculated after update. Duration can be updated in two ways:
  • Provide check_out_date directly.
  • Provide nights (with or without a new check_in_date) — the check-out date is recalculated automatically.
Parameters: Example prompts:
Common errors:

Workflows

Querying hotel stays

  1. List hotel stayslist_hotel_stays to query stays by date range or hotel name
  2. View travel emissionsget_greenhouse_gas_emissions with category=travels for aggregated business travel totals
  3. Compare with flightslist_business_travels to see flight/train records alongside hotel data

Logging a hotel stay

  1. Create the staycreate_hotel_stay with check-in date, country, and nights or check-out date
  2. Verifylist_hotel_stays after a few seconds to confirm creation and CO₂e calculation

API: Create Hotel Stay

REST API endpoint for hotel stay creation

API: List Hotel Stays

REST API equivalent with additional filters

Business Travels

Flight and train journey records

Emissions

Aggregated Scope 3 travel emissions