Skip to main content
Glama

Create order

create_order
DestructiveIdempotent

Create an unpaid order when the user asks to book one offer from get_hotel_offers. It takes items, one item with the offer's offerId inside it (nowhere else in the arguments) and hotel.rooms, and contact. The answer is the order, awaiting payment: its reference, the total, the stay and its terms, and a payment link, a Fortrip page to pay on. Nothing is charged until the order is paid on that page; anyone holding the link can pay. Send the contact and, for each room of the offer, at least one guest. If the price or terms changed since the offer, the answer is offer_changed with every change and a new offer: show the changes and ask the user again before ordering it. Sending the same details again returns the same order. An offer is ordered once: another order of the stay (another party, or a corrected guest name or contact) takes a new offer. cancel_order cancels or closes an order; for changes, or a cancellation it can't make, the user emails support@fortrip.ai with the order's reference.

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": {
      "items": "<items>",
      "contact": "<contact>"
    },
    "name": "create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesWhat to order: exactly one item, which holds the offer's offerId and what its hotel needs to know. The offerId goes inside the item, not beside items.
contactYesWho the hotel and the confirmation reach.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds meaningful context beyond them: nothing is charged until paid, the payment link is bearer-access ('anyone holding the link can pay'), an order is created once per offer, and a second order needs a fresh offer. The offer_changed branch and error behavior are also disclosed. It stops short of stating explicit preconditions like offering expiry.

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 purpose, then the argument shape, then the return and error behavior in a logical order with no filler. It repeats the offerId placement rule twice ('one item with the offer's offerId inside it' and 'nowhere else'), which is mild redundancy in an otherwise dense paragraph.

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 carries the return burden and does so: reference, total, stay and terms, payment link, plus the offer_changed alternative response. For a nested, destructive, monetary tool, it is close to complete, only missing explicit preconditions around offer validity or expiry timing.

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%, so the baseline is 3, but the description reinforces the highest-risk structural gotcha: the offerId must sit inside the single item, 'nowhere else in the arguments', and rooms map one-to-one to the offer's rooms with at least one guest each. Since the schema already documents these, the credit is modest but the emphasis is useful for a nested mutation.

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 ('Create an unpaid order') plus a precise scope: booking exactly one offer from get_hotel_offers. It is clearly distinguishable from cancel_order, get_order, and get_hotel_offers, which are named or implied as different operations.

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?

Explicitly anchors usage to 'when the user asks to book one offer from get_hotel_offers' and routes cancellations to cancel_order and changes or impossible cancellations to support email. It also gives retry guidance (resend same details = same order) and the offer_changed flow, though it never states when not to order (e.g., unconfirmed offer).

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