Skip to main content
Glama

Lock a hotel quote

brij_create_hotel_intent

Free over MCP (the x402 price quoted below applies to the HTTP API only; MCP calls are rate-limited instead). offer_id is the quote's offer_id. KEEP customer_support_code from the answer: orders and cancellation need it. Next: brij_book_hotel. If the user gave you a discount code, send it as promo_code (checked before any payment; fee waived when it applies).

Create the escrow for a quoted hotel stay

Paid x402 endpoint: $0.10 USDC. Identical to POST /air/intents with the offer_id from POST /hotels/quote. The escrow amount is the quote's ALL-IN total. Persist customer_support_code: it cannot be read again, and POST /hotels/orders and /hotels/cancel need it.

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": {
      "funding_wallet": "<funding_wallet>",
      "offer_id": "<offer_id>"
    },
    "name": "brij_create_hotel_intent"
  }
}

Input Schema

NameRequiredDescriptionDefault
offer_idYesThe offer to book, sent back EXACTLY as received from POST /air/search or POST /air/offer-details — never reassembled by hand.
referrerNoOptional affiliate code (see POST /affiliates). Not a discount: it credits the referrer a share of the platform fee. Unknown or self-referring codes are silently ignored.
promo_codeNoOptional discount code the user gave you (e.g. from a community or campaign). Send it exactly as the user wrote it; case does not matter. Waives the BRIJ service fee on flights and hotels. Checked BEFORE any payment: an unusable code refuses the intent, free, with promo_invalid (404), promo_expired (410), promo_exhausted (409, no seats left) or already_member (409, this wallet already redeemed a code) — tell the user and retry without it. When it applies, the answer carries intent.promo_code and a fee_amount of 0. The code is redeemed for the funding wallet once that wallet funds the escrow; after that every booking from the wallet is fee-free until the benefit ends, with no code to resend.
refund_walletNoOptional Solana wallet for refunds. Defaults to funding_wallet.
funding_walletYesSolana wallet expected to fund the escrow.

Output Schema

NameRequiredDescriptionDefault
intentNoRead-only projection of a booking intent. Omits customer_support_code, promo_code and passenger PII; those fields are returned once at intent-creation and /book time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / promo_code / description
      Previous value: -"Optional discount code the user gave you (e.g. from a community or campaign). Send it exactly as the user wrote it; case does not matter. Waives the BRIJ service fee on flights, trains, buses and hotels (not products). Checked BEFORE any payment: an unusable code refuses the intent, free, with promo_invalid (404), promo_expired (410), promo_exhausted (409, no seats left) or already_member (409, this wallet already redeemed a code) — tell the user and retry without it. When it applies, the answer carries intent.promo_code and a fee_amount of 0. The code is redeemed for the funding wallet once that wallet funds the escrow; after that every booking from the wallet is fee-free until the benefit ends, with no code to resend."New value: +"Optional discount code the user gave you (e.g. from a community or campaign). Send it exactly as the user wrote it; case does not matter. Waives the BRIJ service fee on flights and hotels. Checked BEFORE any payment: an unusable code refuses the intent, free, with promo_invalid (404), promo_expired (410), promo_exhausted (409, no seats left) or already_member (409, this wallet already redeemed a code) — tell the user and retry without it. When it applies, the answer carries intent.promo_code and a fee_amount of 0. The code is redeemed for the funding wallet once that wallet funds the escrow; after that every booking from the wallet is fee-free until the benefit ends, with no code to resend."
  2. Changed3 schema fields changed
    • addedInput schema / properties / promo_code
      Added value: +{
      +  "description": "Optional discount code the user gave you (e.g. from a community or campaign). Send it exactly as the user wrote it; case does not matter. Waives the BRIJ service fee on flights, trains, buses and hotels (not products). Checked BEFORE any payment: an unusable code refuses the intent, free, with promo_invalid (404), promo_expired (410), promo_exhausted (409, no seats left) or already_member (409, this wallet already redeemed a code) — tell the user and retry without it. When it applies, the answer carries intent.promo_code and a fee_amount of 0. The code is redeemed for the funding wallet once that wallet funds the escrow; after that every booking from the wallet is fee-free until the benefit ends, with no code to resend.",
      +  "type": "string"
      +}
    • addedInput schema / properties / referrer
      Added value: +{
      +  "description": "Optional affiliate code (see POST /affiliates). Not a discount: it credits the referrer a share of the platform fee. Unknown or self-referring codes are silently ignored.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / intent / description
      Previous value: -"Read-only projection of a booking intent. Omits customer_support_code and passenger PII; those fields are returned once at intent-creation and /book time."New value: +"Read-only projection of a booking intent. Omits customer_support_code, promo_code and passenger PII; those fields are returned once at intent-creation and /book time."
  3. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare the generic non-read-only, non-idempotent, open-world profile; the description adds real substance beyond that: escrow amount equals the quote's ALL-IN total, customer_support_code is returned once and never readable again, MCP calls are rate-limited rather than charged, and promo failures return specific codes (404/410/409) before any payment. The info is duplicated across sentences, which costs some credibility, but the behavioral disclosure itself is strong.

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?

Structure fails front-loading: the first two sentences are a pricing/rate-limit preamble, and the actual purpose appears only in the third line. The customer_support_code warning is repeated twice ('KEEP ... from the answer' and 'Persist customer_support_code'), and the 'Free over MCP / Paid x402 endpoint' framing is redundant with itself.

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 an output schema present, the description needn't explain return values, and it correctly focuses on ordering, funding amount, post-call persistence of customer_support_code, and promo error handling. Missing pieces like quote-expiry behavior or what happens if funding never arrives keep it from 5.

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

Parameters3/5

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

Schema coverage is 100%, so offer_id, promo_code, referrer and refund_wallet are already fully documented in the schema. The description mostly restates offer_id and promo_code semantics, adding only the escrow-funding amount linkage (ALL-IN total). Baseline 3 given the schema does the heavy lifting.

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

Purpose4/5

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

The sentence 'Create the escrow for a quoted hotel stay' states a specific verb and resource and is differentiated from brij_quote_hotel (offer_id comes from the quote) and brij_book_hotel ('Next: brij_book_hotel'). However, it is buried mid-description behind a pricing note, so the purpose is not front-loaded for a scanning agent.

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?

Sequencing is explicit: the offer_id comes from the quote step, and the next call after this one is brij_book_hotel. Promo codes are gated with 'checked before any payment'. It gives no explicit when-not-to-use guidance (e.g. expired quotes), so it stops short of 5.

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