cd /news/ai-agents/mcp-vs-a-travel-api-what-changes-whe… · home › topics › ai-agents › article
[ARTICLE · art-182936] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

MCP vs. a Travel API: What Changes When the Client Is an Agent?

A developer at Luluway outlined design principles for exposing travel booking capabilities to AI agents via MCP servers rather than conventional REST endpoints, arguing that agent-facing tools need model-readable descriptions, schemas and state. The writeup proposes splitting a monolithic plan-and-book tool into discrete state transitions such as search_hotels, recheck_hotel_offer, create_booking and cancel_booking_quote, with descriptions like "Use for discovery only" serving as part of the safety model. The underlying hotel API still performs validation and execution; the MCP layer makes the capability legible to the model at runtime.

recommendation

Split agent-facing booking tools along transaction boundaries and encode usage limits in descriptions, e.g. mark search as discovery-only and require an offer recheck before create_booking.

more in playbook: Designing agent systems
by read6 min views2 publishedDec 6, 2026

Disclosure: I work at Luluway, where we are building travel tools for agents. This article describes design principles and illustrative interfaces, not a final public API specification.

If you already have a hotel API, why would you need MCP? It is a fair question.

A travel API can search properties, return rates, create bookings, and cancel orders. MCP does not replace the supplier connections, normalization, transaction services, or operational systems behind those endpoints.

So the answer is not “MCP is better than APIs.”

The more useful answer is:

APIs are usually designed for application developers. Agent tools also have to be understandable and safely usable by a model at runtime.

At Luluway, that distinction matters because the client may be a general assistant, an AI-native application, a pair of glasses, a watch, or a developer agent—not a traditional travel frontend with a fixed screen flow.

The API remains underneath

Consider a conventional hotel search endpoint:

POST /v1/hotels/search

{

"latitude": 35.6895,

"longitude": 139.6917,

"radiusKm": 3,

"checkIn": "2027-03-18",

"checkOut": "2027-03-20",

"occupancy": [{ "adults": 2, "children": [] }],

"currency": "USD"

}

There is nothing wrong with this interface. A deterministic service should still validate it, execute the search, and return structured results.

The difference appears one level above it. An agent needs to know:

- when this tool should be used;
- which arguments are required;
  • which missing arguments may be inferred;
  • what the returned price means;
  • whether results are bookable or only discoverable;
  • what must be confirmed with the user before the next tool call;
  • what to do when availability changes. In a traditional app, engineers encode those rules in screens and application logic. In an agentic interface, some of the orchestration happens dynamically through tool descriptions, schemas, state, and model reasoning. MCP adds a model-facing contract An MCP server can expose tools with names, descriptions, and input schemas that an agent can inspect. A simplified tool might look conceptually like this:
{
"name": "search_hotels",
"description": "Search live hotel offers for exact dates and occupancy. Use for discovery only. A returned offer must be rechecked before booking.",
"inputSchema": {
"type": "object",
"required": ["destination", "checkIn", "checkOut", "rooms"],
"properties": {
"destination": { "type": "string" },
"checkIn": { "type": "string", "format": "date" },
"checkOut": { "type": "string", "format": "date" },
"rooms": { "type": "array" },
"currency": { "type": "string" }
}
}
}

The phrase “Use for discovery only” is part of the safety model. It tells the agent that search output is not final authorization to book. The underlying API performs the search. The MCP layer makes the capability legible to the agent. Good tools follow transaction boundaries One tempting design is a giant tool: plan_and_book_my_trip(...) It sounds convenient. It is difficult to inspect, authorize, retry, and recover. A safer travel toolset may separate capabilities: resolve_destination search_hotels get_hotel_details recheck_hotel_offer create_booking get_booking_status cancel_booking_quote confirm_cancellation Each tool corresponds to a meaningful state transition. This gives the agent room to reason while preserving deterministic checkpoints: understand intent ↓ search_hotels ↓ compare offers ↓ recheck_hotel_offer ↓ show final terms and request approval ↓ create_booking ↓ get_booking_status Payment can be a separate authorized flow rather than an invisible side effect of search or booking. Tool descriptions are part of the product

For a normal API, an ambiguous endpoint description frustrates a developer during integration.
For an agent tool, ambiguity can become a wrong action at runtime.

Compare these descriptions: cancel_booking: Cancels a booking.and: cancel_booking_quote: Returns the expected penalty and refund for a booking without cancelling it. After showing these terms and receiving explicit user approval, call confirm_cancellation with the quote ID.The second description teaches the agent the consent boundary. Good agent-facing documentation should specify: whether a tool reads or mutates state; whether it can create a financial consequence; whether results can expire; which fields must be shown to the user; whether a retry is safe; how pending and partial failures are represented. Errors must help the agent recover Traditional APIs sometimes return an error code and a message written for engineers. An agent needs structured recovery information.

{
"error": {
"code": "OFFER_PRICE_CHANGED",
"retryable": false,
"requiresUserApproval": true,
"previousTotal": {
"amount": 392.20,
"currency": "USD"
},
"currentTotal": {
"amount": 407.80,
"currency": "USD"
},
"nextAction": "Present the new total and cancellation policy. Recheck only after the user accepts the change."
}
}

This is more useful than 400 Bad Request, and safer than letting the model invent a recovery strategy. Context should reduce friction, not remove consent An agent may know the user’s location, calendar, loyalty preferences, or usual room requirements. MCP can make connected resources and tools available in the current context. But context does not equal authorization. Knowing that the user usually prefers refundable rooms does not authorize a non-refundable booking. Knowing their default card does not authorize a charge. Knowing their location does not justify storing it indefinitely. The architecture should separate: context: information the agent may use; intent: what the user is asking for now; delegation: choices the user allows the agent to make; authorization: approval for a consequential action. This separation becomes especially important on wearables. Claude for Apple Watch, for example, can provide voice interaction, permission-based device context, and cards for approving tool actions. A travel tool layer could eventually make hotel capabilities available in that environment. It should not interpret the presence of the watch as blanket permission to book and pay. What MCP does not solve MCP does not magically provide: hotel inventory; property and room normalization; accurate cancellation policies; price confirmation; payment compliance; idempotent booking; supplier reconciliation; refunds or customer support. Those remain travel and transaction infrastructure problems. MCP can provide a standard way for agents to discover and call capabilities. The quality of those capabilities still depends on the systems behind them. An unreliable booking API wrapped in an elegant MCP server remains unreliable. A practical way to decide Use a conventional API directly when: the client is a fixed application; engineers control the workflow end to end; the interface and sequence rarely change; there is no need for runtime tool discovery. Consider an MCP layer when: multiple AI clients need the same travel capability; a model must select tools dynamically; you want the capability to work across assistants and agent frameworks; tool semantics, approval boundaries, and recovery guidance need to travel with the interface; you want to reduce custom integration code for every agent host. In many systems, the answer is both: Agent host ↓ MCP Agent-facing travel tools ↓ internal APIs Search, booking, payment, and service systems What we are building toward at Luluway The goal of a Luluway travel tool layer is not to expose every internal endpoint to a model. It is to expose a smaller set of capabilities that match how an agent should safely help a traveler:

discover;
understand;
compare;
recheck;

book with authorization; retrieve and service the order. Our public work with Rokid AI glasses, the Gala hotel agent, and JD AI Pay illustrates why this separation matters. The wearable handled the interaction, the travel capability handled hotel discovery and booking, and the payment capability handled the financial step. The next challenge is to make that pattern portable across more agent environments without pretending every environment has the same interface or permission model. The short answer A travel API answers: How can software call this travel service? An agent-facing MCP layer also has to answer: How does an AI know when to call it, what the result means, what requires approval, and what to do next? That is not a replacement for the API. It is a contract for a new kind of client. PublishSave DraftRevert new changes 🤖

── more in #ai-agents 4 stories · sorted by recency
── more on @luluway 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/mcp-vs-a-travel-api-…] indexed:0 read:6min 2026-12-06 · —