Skip to main content
Glama
Lodgify MCP Server

Lodgify MCP Server

by MikeRobGIT

Create Booking (V1)

lodgify_create_booking

Create a new booking programmatically with property, room type, dates, and guest details; attach a rate-plan quote so totals and payment links work.

Instructions

[Booking & Reservation Management] Create a new booking in the system. This v1 endpoint provides direct booking creation functionality that is not available in v2. Essential for programmatic booking creation and channel management.

REQUIRED FIELDS:

  • property_id: Property ID (use lodgify_list_properties to find valid IDs)

  • room_type_id: Room type ID (use lodgify_list_property_rooms to find valid room IDs for the property)

  • arrival: Check-in date (YYYY-MM-DD format)

  • departure: Check-out date (YYYY-MM-DD format)

  • guest_name: Primary guest name

  • adults: Number of adult guests (minimum 1)

OPTIONAL FIELDS:

  • guest_email: Guest email address (recommended)

  • guest_phone: Guest phone number

  • children: Number of children (default: 0)

  • infants: Number of infants

  • status: Booking status (booked, tentative, declined, confirmed)

  • source: Booking source/channel

  • notes: Internal notes or special requests

  • attach_quote: attach a Lodgify rate-plan quote after creating (default true, see below)

  • promotion_code, is_policy_active, expected_total: passed to the quote (see lodgify_create_booking_quote)

PRICING: Lodgify has no way to set a custom price on a quote. By default this tool creates the booking and then attaches a quote priced from the rate plans, so the booking gets real subtotals and payment links work. Passing total skips Lodgify's calculation and leaves the booking WITHOUT a quote (attach_quote defaults to false); attaching one afterwards replaces that total with the rate-plan price, so total together with attach_quote:true is rejected. The result is "partial" when the quote or the status change failed, with the reason.

Input Format: Accepts simple flat parameters (user-friendly) API Transform: Automatically transforms to nested structure required by Lodgify API

Example MCP Tool Input (flat structure): { "property_id": 684855, // Property ID for the booking "room_type_id": 751902, // Room type ID (required - use lodgify_list_property_rooms to find valid IDs) "arrival": "2025-08-27", // Arrival date (YYYY-MM-DD) "departure": "2025-08-28", // Departure date (YYYY-MM-DD) "guest_name": "Test Guest", // Primary guest name "guest_email": "test@example.com", // Guest email address "adults": 2, // Number of adult guests "children": 0, // Number of children "status": "booked", // Booking status "source": "Direct Website" // Booking source or channel }

This gets automatically transformed to the nested API structure: { "property_id": 684855, "arrival": "2025-08-27", "departure": "2025-08-28", "guest": { "guest_name": {"first_name": "Test", "last_name": "Guest"}, "email": "test@example.com" }, "rooms": [{"room_type_id": 751902, "guest_breakdown": {"adults": 2, "children": 0}}], "status": "Booked", "source_text": "Direct Website" }

The transformation handles: guest name splitting, room structuring, status capitalization, and field mapping.

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": {
      "property_id": "<property_id>",
      "room_type_id": "<room_type_id>",
      "arrival": "<arrival>",
      "departure": "<departure>",
      "guest_name": "<guest_name>",
      "adults": "<adults>"
    },
    "name": "lodgify_create_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoInternal notes or special requests
totalNoOverride Lodgify rate-plan total. When provided, the booking is created with this exact total instead of being recalculated from rate plans.
adultsYesNumber of adult guests
sourceNoBooking source or channel
statusNoBooking status
arrivalYesArrival date (YYYY-MM-DD)
infantsNoNumber of infants
childrenNoNumber of children
departureYesDeparture date (YYYY-MM-DD)
guest_nameYesPrimary guest name
bookabilityNoBooking flow Lodgify should treat this reservation as. Defaults to EnquiryOnly server-side; pass "InstantBooking" for fully confirmed reservations so the dashboard renders per-unit totals.
guest_emailNoGuest email address
guest_phoneNoGuest phone number
property_idYesProperty ID for the booking
attach_quoteNoAttach a Lodgify rate-plan quote after creating the booking. Default: true, except for tentative/declined bookings and when total is given. Without a quote the booking has all-zero subtotals and payment links fail.
room_type_idYesRoom type ID (required - use lodgify_list_property_rooms to find valid IDs)
currency_codeNoISO currency code for the override total (e.g. USD, EUR). Required when total is set.
expected_totalNoAgreed total; the result warns when the Lodgify quote differs
promotion_codeNoLodgify promotion code to apply to the quote (needs attach_quote)
is_policy_activeNoQuote with the rate policy. Default false: true moves the booking to Tentative and blocks payment links.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (which only declare non-read-only, non-destructive, non-idempotent, closed-world), the description discloses substantial behavior: a quote is auto-attached by default so subtotals/payment links work, results can be "partial" with a failure reason, and attaching a quote afterwards overwrites a supplied `total`. These are exactly the side effects an agent cannot infer from the annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The required/optional and pricing sections are well front-loaded and useful, but roughly half the text is a verbose example input and a full nested API payload that duplicate the flat schema and describe an internal transformation the agent never performs. That padding dilutes an otherwise efficient definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 20-parameter mutation tool with no output schema, the description covers the important gaps: pricing behavior, partial-failure reporting, and prerequisites for ID lookup. It does not describe what a successful result contains beyond the "partial" status, and the `bookability` semantics (InstantBooking vs EnquiryOnly) are left entirely to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema cannot convey as clearly: the conflict between `total` and `attach_quote`, the default flip of attach_quote for tentative/declined bookings, and why `total` leaves the booking quote-less. It omits `bookability` and `currency_code` from its required/optional lists, though the schema documents both.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Create a new booking") and immediately marks it as the v1 direct-creation path, which distinguishes it from the sibling update/list/get/delete booking tools. The pointer to lodgify_create_booking_quote for post-creation pricing further separates it from the pricing sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete preconditions (use lodgify_list_properties and lodgify_list_property_rooms to obtain valid IDs) and an explicit usage rule for the pricing path: `total` together with attach_quote:true is rejected, and `total` leaves the booking without a quote. It stops short of saying when to prefer lodgify_update_booking or how to handle an existing reservation, so no explicit exclusion of alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.