Skip to main content
Glama
Lodgify MCP Server

Lodgify MCP Server

by MikeRobGIT

Create Quote for Booking

lodgify_create_booking_quote
Destructive

Attach a Lodgify quote to an existing booking, replacing its total with pricing built from the property's rate plans. Optionally apply a promotion code or verify an agreed total.

Instructions

[Rates & Pricing] Attach a quote to an existing booking. Lodgify builds the quote from the property's RATE PLANS and replaces the booking's total with it. The API cannot take a custom total, breakdown, notes or expiry, and this tool rejects those fields.

⚠️ WRITE operation. Blocked in read-only mode. A second call replaces the booking's quote.

What the result contains (read back from Lodgify, never copied from the input): quote id, quote status, policy name, total, currency, price lines (RoomRate, Promotion, Tax, Fee) and the booking status.

is_policy_active (default false):

  • false: quote without a payment policy (status NotScheduled). The booking keeps its status and lodgify_create_booking_payment_link works.

  • true: attaches the rate policy and a payment schedule, but Lodgify then moves the booking to Tentative, leaves the quote NotSent and refuses payment links until someone sends the quote from the Lodgify dashboard.

promotion_code: applies a Lodgify promotion. Lodgify silently ignores unknown codes, so check the returned price lines for a Promotion line (the tool warns when it is missing).

expected_total: optional. When Lodgify's total differs, the result is "partial" with a warning. Use it whenever a price was agreed with the guest.

room_types: optional [{room_type_id, custom_fee_amount}]. custom_fee_amount adds a flat Fee line on top of the room rate (it does not set the room rate). Leave it out normally; Lodgify uses all rooms of the booking.

Example: { "bookingId": 24415718, "is_policy_active": false, "promotion_code": "DIRECT10", "expected_total": 662.09 }

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": {
      "bookingId": "<bookingId>"
    },
    "name": "lodgify_create_booking_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
add_onsNoAdd-ons to include
payloadNo
currencyNo
policyIdNo
subtotalNo
bookingIdYesBooking ID to create the quote for
breakdownNo
room_typesNoRoom types to quote; defaults to all rooms of the booking
totalPriceNo
validUntilNo
adjustmentsNo
customTermsNo
sendToGuestNo
expected_totalNoAgreed total; the result warns when Lodgify prices the stay differently
promotion_codeNoLodgify promotion code to apply
replaceExistingNo
is_policy_activeNoAttach the rate policy. true moves the booking to Tentative and blocks payment links.
rentalAgreementIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, idempotentHint=false and openWorldHint=true, but the description goes much further: it explains that the booking's total is replaced, that custom total/breakdown/notes/expiry are rejected by the API, and that a repeat call overwrites the prior quote. It also discloses non-obvious side effects of is_policy_active (booking moves to Tentative, quote stays NotSent, payment links refused) and that Lodgify silently ignores unknown promotion codes.

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

Conciseness4/5

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

The definition is long but front-loaded: the one-line purpose comes first, then the write warning, then the result contract, then per-parameter behavior. Bold headers make it scannable, though the is_policy_active block and example repeat some information that could be tightened.

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?

With no output schema, the description usefully enumerates what the result contains (quote id, status, policy name, total, price lines, booking status) and explains the "partial" outcome tied to expected_total. For a destructive, non-idempotent write tool the side-effect coverage is solid; only the fate of the undocumented parameters and the behavior of add_ons remain unclear.

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 only 32% across 19 parameters, but the description compensates by explaining is_policy_active, promotion_code, expected_total and room_types.custom_fee_amount in operational terms, and by declaring that notes, breakdown, total and expiry are rejected traps. It does not clarify add_ons, sendToGuest, replaceExisting or rentalAgreementId, which remain undocumented in both places, so it falls short of full compensation.

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?

"[Rates & Pricing] Attach a quote to an existing booking" names a specific verb and resource, then immediately adds the key mechanism: Lodgify builds the quote from the property's RATE PLANS rather than from caller-supplied numbers. That distinguishes it cleanly from the read-side sibling lodgify_get_quote and from lodgify_create_booking.

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

Usage Guidelines5/5

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

The description gives conditional guidance for each decision the caller faces: use is_policy_active=false to keep payment links working, true only when a sent quote and schedule are wanted; use expected_total whenever a price was agreed with the guest; leave room_types out normally; and it warns that a second call replaces the quote. It also states the interaction with lodgify_create_booking_payment_link, which is the practical alternative that gets blocked.

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