Skip to main content
Glama

Review payment for this existing booking

get_booking_payment_review
Read-onlyIdempotent

Use this when retrieving the existing unpaid checkout for the OAuth-selected guest booking. Do not use for payment flags (use get_booking_status instead); submission recovery uses get_offer_status. The selection, original intake proof and separate payment-review consent must identify the same booking. A bookingKey cannot supply consent; linked-customer and status-only grants are ineligible. prepared returns the private checkout for customer confirmation/payment. Paid or closed states have no link; ambiguous, conflict, expired or unavailable require review, never a replacement offer. Access is checked before and after retrieval, without creating a checkout, charging, messaging or refreshing the payment provider.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_booking_payment_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookingKeyNoOmit to use exactly the booking already selected by this OAuth connection. If supplied, use that same booking's ID or visible reference; another identifier cannot switch selection or grant access.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "status": {
      -        "description": "Review failure: invalid_request rejects input; not_found denies current object/proof access; unavailable cannot safely supply the review; ambiguous means evidence is incomplete or non-unique; conflict means stored offer facts disagree; expired means the bound offer has expired.",
      -        "enum": [
      -          "invalid_request",
      -          "not_found",
      -          "unavailable",
      -          "ambiguous",
      -          "conflict",
      -          "expired"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bookingChanged": {
      -        "const": false,
      -        "description": "This read did not change the booking.",
      -        "type": "boolean"
      -      },
      -      "nextAction": {
      -        "description": "Read-only guidance for the returned recorded state; do not start another payment.",
      -        "type": "string"
      -      },
      -      "payment": {
      -        "additionalProperties": false,
      -        "description": "The selected booking's recorded payment state.",
      -        "properties": {
      -          "recordedStatus": {
      -            "description": "Stored reservation payment status; no new payment-provider confirmation.",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "recordedStatus"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "const": "available",
      -        "description": "Recorded payment state is returned without another payment link for an already-paid, refunded or closed booking.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "payment",
      -      "bookingChanged",
      -      "nextAction"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bookingConfirmed": {
      -        "const": false,
      -        "description": "Returning the existing review link does not confirm the booking.",
      -        "type": "boolean"
      -      },
      -      "checkoutUrl": {
      -        "description": "Existing private offer-review page; open it to review terms and explicitly confirm and pay through the existing flow. Treat the link as private.",
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "nextAction": {
      -        "description": "Guidance to open the existing review page and review the bound offer; this read performs no payment.",
      -        "type": "string"
      -      },
      -      "offer": {
      -        "additionalProperties": false,
      -        "description": "Existing offer amount, expiry and confirmation/terms requirements.",
      -        "properties": {
      -          "completeTermsBound": {
      -            "const": true,
      -            "description": "Complete service and legal terms were verified as bound to this offer.",
      -            "type": "boolean"
      -          },
      -          "currency": {
      -            "const": "EUR",
      -            "description": "Currency of the existing bound offer amount: EUR.",
      -            "type": "string"
      -          },
      -          "customerConfirmationRequired": {
      -            "const": true,
      -            "description": "The customer must explicitly review and confirm the offer on its existing page.",
      -            "type": "boolean"
      -          },
      -          "expiresAt": {
      -            "description": "Stored offer expiry timestamp from offer_expires_at. It is separate from the submission resume-token expiry; an expired offer cannot be confirmed.",
      -            "type": "string"
      -          },
      -          "grossTotalCents": {
      -            "description": "Verified gross total of the existing offer in EUR cents, including applicable tax.",
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "currency",
      -          "grossTotalCents",
      -          "expiresAt",
      -          "customerConfirmationRequired",
      -          "completeTermsBound"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "const": "prepared",
      -        "description": "The existing unpaid offer and bound review link were verified for review; no new Checkout Session or payment was created.",
      -        "type": "string"
      -      },
      -      "termsUrl": {
      -        "description": "The same existing offer page containing the complete bound terms to review before confirmation.",
      -        "format": "uri",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "bookingConfirmed",
      -      "checkoutUrl",
      -      "termsUrl",
      -      "offer",
      -      "nextAction"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "status": {
      +        "description": "Review failure: invalid_request rejects input; not_found denies current object/proof access; unavailable cannot safely supply the review; ambiguous means evidence is incomplete or non-unique; conflict means stored offer facts disagree; expired means the bound offer has expired.",
      +        "enum": [
      +          "invalid_request",
      +          "not_found",
      +          "unavailable",
      +          "ambiguous",
      +          "conflict",
      +          "expired",
      +          "declined"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "retryAfterSeconds": {
      +        "description": "Seconds to wait, then reuse the same pair.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "status": {
      +        "const": "pending",
      +        "description": "This offer intent is still pending.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "retryAfterSeconds"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bookingChanged": {
      +        "const": false,
      +        "description": "This read did not change the booking.",
      +        "type": "boolean"
      +      },
      +      "nextAction": {
      +        "description": "Read-only guidance for the returned recorded state; do not start another payment.",
      +        "type": "string"
      +      },
      +      "payment": {
      +        "additionalProperties": false,
      +        "description": "The selected booking's recorded payment state.",
      +        "properties": {
      +          "recordedStatus": {
      +            "description": "Stored reservation payment status; no new payment-provider confirmation.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "recordedStatus"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "const": "available",
      +        "description": "Recorded payment state is returned without another payment link for an already-paid, refunded or closed booking.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "payment",
      +      "bookingChanged",
      +      "nextAction"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bookingConfirmed": {
      +        "const": false,
      +        "description": "Returning the existing review link does not confirm the booking.",
      +        "type": "boolean"
      +      },
      +      "checkoutUrl": {
      +        "description": "Existing private offer-review page; open it to review terms and explicitly confirm and pay through the existing flow. Treat the link as private.",
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "nextAction": {
      +        "description": "Guidance to open the existing review page and review the bound offer; this read performs no payment.",
      +        "type": "string"
      +      },
      +      "offer": {
      +        "additionalProperties": false,
      +        "description": "Existing offer amount, expiry and confirmation/terms requirements.",
      +        "properties": {
      +          "completeTermsBound": {
      +            "const": true,
      +            "description": "Complete service and legal terms were verified as bound to this offer.",
      +            "type": "boolean"
      +          },
      +          "currency": {
      +            "const": "EUR",
      +            "description": "Currency of the existing bound offer amount: EUR.",
      +            "type": "string"
      +          },
      +          "customerConfirmationRequired": {
      +            "const": true,
      +            "description": "The customer must explicitly review and confirm the offer on its existing page.",
      +            "type": "boolean"
      +          },
      +          "expiresAt": {
      +            "description": "Stored offer expiry timestamp from offer_expires_at. It is separate from the submission resume-token expiry; an expired offer cannot be confirmed.",
      +            "type": "string"
      +          },
      +          "grossTotalCents": {
      +            "description": "Verified gross total of the existing offer in EUR cents, including applicable tax.",
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "currency",
      +          "grossTotalCents",
      +          "expiresAt",
      +          "customerConfirmationRequired",
      +          "completeTermsBound"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "const": "prepared",
      +        "description": "The existing unpaid offer and bound review link were verified for review; no new Checkout Session or payment was created.",
      +        "type": "string"
      +      },
      +      "termsUrl": {
      +        "description": "The same existing offer page containing the complete bound terms to review before confirmation.",
      +        "format": "uri",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "bookingConfirmed",
      +      "checkoutUrl",
      +      "termsUrl",
      +      "offer",
      +      "nextAction"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / bookingKey / description
      Previous value: -"Internal booking ID for the one selected booking. At the customer OAuth endpoint, its visible bookingReference is accepted too. Copy the same booking's bookingKey or bookingReference from an available get_offer_status/prepare_offer or authorized booking-read result. prepared returns links, not these IDs. The supplier offerKey is not a booking identifier; the identifier grants no access by itself."New value: +"Omit to use exactly the booking already selected by this OAuth connection. If supplied, use that same booking's ID or visible reference; another identifier cannot switch selection or grant access."
    • removedInput schema / required
      Removed value: -[
      -  "bookingKey"
      -]
  3. Changed2 schema fields changed
    • changedInput schema / properties / bookingKey / description
      Previous value: -"Internal booking ID for the one selected booking. At the customer OAuth endpoint, its visible bookingReference is accepted too. Use a value returned for that same booking; the identifier grants no access by itself."New value: +"Internal booking ID for the one selected booking. At the customer OAuth endpoint, its visible bookingReference is accepted too. Copy the same booking's bookingKey or bookingReference from an available get_offer_status/prepare_offer or authorized booking-read result. prepared returns links, not these IDs. The supplier offerKey is not a booking identifier; the identifier grants no access by itself."
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "status": {
      -        "enum": [
      -          "invalid_request",
      -          "not_found",
      -          "unavailable",
      -          "ambiguous",
      -          "conflict",
      -          "expired"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bookingChanged": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "nextAction": {
      -        "type": "string"
      -      },
      -      "payment": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "recordedStatus": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "recordedStatus"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "const": "available",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "payment",
      -      "bookingChanged",
      -      "nextAction"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bookingConfirmed": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "checkoutUrl": {
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "nextAction": {
      -        "type": "string"
      -      },
      -      "offer": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "completeTermsBound": {
      -            "const": true,
      -            "type": "boolean"
      -          },
      -          "currency": {
      -            "const": "EUR",
      -            "type": "string"
      -          },
      -          "customerConfirmationRequired": {
      -            "const": true,
      -            "type": "boolean"
      -          },
      -          "expiresAt": {
      -            "type": "string"
      -          },
      -          "grossTotalCents": {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "currency",
      -          "grossTotalCents",
      -          "expiresAt",
      -          "customerConfirmationRequired",
      -          "completeTermsBound"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "const": "prepared",
      -        "type": "string"
      -      },
      -      "termsUrl": {
      -        "format": "uri",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "bookingConfirmed",
      -      "checkoutUrl",
      -      "termsUrl",
      -      "offer",
      -      "nextAction"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "status": {
      +        "description": "Review failure: invalid_request rejects input; not_found denies current object/proof access; unavailable cannot safely supply the review; ambiguous means evidence is incomplete or non-unique; conflict means stored offer facts disagree; expired means the bound offer has expired.",
      +        "enum": [
      +          "invalid_request",
      +          "not_found",
      +          "unavailable",
      +          "ambiguous",
      +          "conflict",
      +          "expired"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bookingChanged": {
      +        "const": false,
      +        "description": "This read did not change the booking.",
      +        "type": "boolean"
      +      },
      +      "nextAction": {
      +        "description": "Read-only guidance for the returned recorded state; do not start another payment.",
      +        "type": "string"
      +      },
      +      "payment": {
      +        "additionalProperties": false,
      +        "description": "The selected booking's recorded payment state.",
      +        "properties": {
      +          "recordedStatus": {
      +            "description": "Stored reservation payment status; no new payment-provider confirmation.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "recordedStatus"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "const": "available",
      +        "description": "Recorded payment state is returned without another payment link for an already-paid, refunded or closed booking.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "payment",
      +      "bookingChanged",
      +      "nextAction"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bookingConfirmed": {
      +        "const": false,
      +        "description": "Returning the existing review link does not confirm the booking.",
      +        "type": "boolean"
      +      },
      +      "checkoutUrl": {
      +        "description": "Existing private offer-review page; open it to review terms and explicitly confirm and pay through the existing flow. Treat the link as private.",
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "nextAction": {
      +        "description": "Guidance to open the existing review page and review the bound offer; this read performs no payment.",
      +        "type": "string"
      +      },
      +      "offer": {
      +        "additionalProperties": false,
      +        "description": "Existing offer amount, expiry and confirmation/terms requirements.",
      +        "properties": {
      +          "completeTermsBound": {
      +            "const": true,
      +            "description": "Complete service and legal terms were verified as bound to this offer.",
      +            "type": "boolean"
      +          },
      +          "currency": {
      +            "const": "EUR",
      +            "description": "Currency of the existing bound offer amount: EUR.",
      +            "type": "string"
      +          },
      +          "customerConfirmationRequired": {
      +            "const": true,
      +            "description": "The customer must explicitly review and confirm the offer on its existing page.",
      +            "type": "boolean"
      +          },
      +          "expiresAt": {
      +            "description": "Stored offer expiry timestamp from offer_expires_at. It is separate from the submission resume-token expiry; an expired offer cannot be confirmed.",
      +            "type": "string"
      +          },
      +          "grossTotalCents": {
      +            "description": "Verified gross total of the existing offer in EUR cents, including applicable tax.",
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "currency",
      +          "grossTotalCents",
      +          "expiresAt",
      +          "customerConfirmationRequired",
      +          "completeTermsBound"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "const": "prepared",
      +        "description": "The existing unpaid offer and bound review link were verified for review; no new Checkout Session or payment was created.",
      +        "type": "string"
      +      },
      +      "termsUrl": {
      +        "description": "The same existing offer page containing the complete bound terms to review before confirmation.",
      +        "format": "uri",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "bookingConfirmed",
      +      "checkoutUrl",
      +      "termsUrl",
      +      "offer",
      +      "nextAction"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed1 schema field changed
    • addedInput schema / properties / bookingKey / description
      Added value: +"Internal booking ID for the one selected booking. At the customer OAuth endpoint, its visible bookingReference is accepted too. Use a value returned for that same booking; the identifier grants no access by itself."
  5. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds substantive behavior: access is checked before and after retrieval, and nothing is created, charged, messaged, or refreshed at the provider. It also enumerates outcome semantics (prepared returns the private checkout; paid/closed have no link; ambiguous, conflict, expired, unavailable require review and never a replacement offer).

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?

Front-loaded with the primary use case and tightly written with no filler. Minor redundancy exists between 'the selection, original intake proof and separate payment-review consent must identify the same booking' and the later sentence about bookingKey not supplying consent.

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

Completeness5/5

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

For a security- and consent-sensitive retrieval tool, it covers eligibility, precedence of the OAuth selection, side-effect guarantees, and all documented terminal/error states. An output schema exists, so the description is not obliged to explain return values.

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% and the single bookingKey parameter is already well documented, so the schema does the heavy lifting. The description still adds meaning beyond it: a supplied key cannot switch the OAuth selection or grant access, and consent cannot be derived from a bookingKey at all.

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: 'retrieving the existing unpaid checkout for the OAuth-selected guest booking'. It also routes away from two named siblings (get_booking_status for payment flags, get_offer_status for submission recovery), so an agent can distinguish it without opening another schema.

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?

Explicit when-to-use clause plus explicit when-not-to-use with named alternatives and the condition that selects each. It further scopes eligibility (same booking across selection, intake proof, payment-review consent; bookingKey alone cannot grant consent; linked-customer and status-only grants ineligible).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources