Skip to main content
Glama

Lock a train quote

brij_create_train_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_buy_train.

Create the escrow for a quoted journey.

Paid x402 endpoint: $0.10 USDC. Identical to POST /air/intents with the offer_id from POST /rail/quote. Persist customer_support_code.

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.
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 and passenger PII; those fields are returned once at intent-creation and /book time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare the write/open-world/non-idempotent profile, and the description adds real value beyond them: MCP calls are free but rate-limited, the HTTP endpoint costs $0.10 USDC, an escrow is being created, and customer_support_code must be persisted. It does not describe reversibility of the escrow lock.

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 text is jumbled and poorly front-loaded: the actual purpose ('Create the escrow') appears third, pricing is split across two spots, and 'customer_support_code' is stated twice ('KEEP customer_support_code from the answer' and 'Persist customer_support_code'). The 'Identical to POST /air/intents' line is likely a copy-paste error that adds noise.

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, return values need not be explained. The description covers pricing model, sequencing, and key parameter handling, which is nearly complete for a financial intent tool. The only blemish is the misleading /air/intents reference for a train endpoint.

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 the schema fully documents all three parameters. The description reinforces that offer_id must be the quote's offer_id, but adds no syntax or format detail beyond what the schema already carries, matching the baseline for full schema coverage.

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 core purpose is stated with a specific verb and resource: 'Create the escrow for a quoted journey.' It also implies the train-specific scope through 'Next: brij_buy_train'. However, it never explicitly distinguishes itself from create_flight_intent / create_product_intent siblings, and it confusingly cites POST /air/intents for a train tool.

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?

It provides clear sequencing: use the offer_id from the quote and 'Next: brij_buy_train', which routes the agent through the workflow. It does not, however, state any when-not-to-use condition or the alternative siblings to pick instead.

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