Skip to main content
Glama

Lock a Shop quote

brij_create_shop_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. Next: brij_shop_buy.

Lock a Shop quote in an escrow

Paid x402 endpoint: $0.10 USDC. Identical to POST /air/intents with the offer_id from POST /shopcom/quote. The escrow amount is the quote's ALL-IN total_usdc. Persist customer_support_code: it cannot be read again, and POST /shopcom/orders and refund requests need it. During the beta only invited wallets can create one (403 shopcom_beta_only).

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_shop_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. Added

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the escrow is funded at the quote's ALL-IN total_usdc, customer_support_code cannot be read again and is required later by POST /shopcom/orders and refunds, MCP calls are rate-limited rather than charged, and beta-gated wallets get a 403. These are non-obvious operational constraints an agent could not infer from readOnlyHint=false/destructiveHint=false/idempotentHint=false alone.

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

Conciseness3/5

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

Structure is poor: the text opens with a pricing/rate-limit caveat, then parameter notes, before restating the purpose mid-paragraph in wording that duplicates the title. Pricing is mentioned twice ('Free over MCP... x402 price... Paid x402 endpoint: $0.10 USDC'), and 'KEEP customer_support_code' is repeated in slightly different terms. The content is useful but not front-loaded or deduplicated.

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 5-parameter mutating escrow tool with an output schema, the definition covers the funding model, quote-to-intent linkage, required persistence of the support code, downstream tools, pricing/rate-limit behavior, and the beta error case. Nothing essential to correct invocation appears missing.

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 description coverage is 100%, so the baseline is 3. The description only reiterates that offer_id is the quote's offer_id and that customer_support_code must be retained (an output field, not a parameter), adding little beyond the already detailed schema for funding_wallet, refund_wallet, referrer, and promo_code.

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 plus its effect: 'Lock a Shop quote in an escrow'. It also distinguishes the operation from its neighbours, naming brij_shop_buy as the next step and tying the input to the offer_id produced by POST /shopcom/quote, so an agent can separate quote -> intent -> buy stages without opening other schemas.

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 explicit sequencing ('Next: brij_shop_buy'), states the prerequisite resource (offer_id from POST /shopcom/quote), and notes beta eligibility limits with the 403 shopcom_beta_only error. It does not spell out when not to use this versus brij_shop_quote's other paths, but the position in the workflow is clear.

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