{"slug": "mcp-vs-a-travel-api-what-changes-when-the-client-is-an-agent", "title": "MCP vs. a Travel API: What Changes When the Client Is an Agent?", "summary": "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.", "body_md": "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.\n\nIf you already have a hotel API, why would you need MCP?\n\nIt is a fair question.\n\nA 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.\n\nSo the answer is not “MCP is better than APIs.”\n\nThe more useful answer is:\n\nAPIs are usually designed for application developers. Agent tools also have to be understandable and safely usable by a model at runtime.\n\nAt 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.\n\nThe API remains underneath\n\nConsider a conventional hotel search endpoint:\n\nPOST /v1/hotels/search\n\n{\n\n\"latitude\": 35.6895,\n\n\"longitude\": 139.6917,\n\n\"radiusKm\": 3,\n\n\"checkIn\": \"2027-03-18\",\n\n\"checkOut\": \"2027-03-20\",\n\n\"occupancy\": [{ \"adults\": 2, \"children\": [] }],\n\n\"currency\": \"USD\"\n\n}\n\nThere is nothing wrong with this interface. A deterministic service should still validate it, execute the search, and return structured results.\n\nThe difference appears one level above it. An agent needs to know:\n\n- when this tool should be used;\n- which arguments are required;\n- which missing arguments may be inferred;\n- what the returned price means;\n- whether results are bookable or only discoverable;\n- what must be confirmed with the user before the next tool call;\n- what to do when availability changes.\nIn 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.\nMCP adds a model-facing contract\nAn MCP server can expose tools with names, descriptions, and input schemas that an agent can inspect.\nA simplified tool might look conceptually like this:\n{\n\"name\": \"search_hotels\",\n\"description\": \"Search live hotel offers for exact dates and occupancy. Use for discovery only. A returned offer must be rechecked before booking.\",\n\"inputSchema\": {\n\"type\": \"object\",\n\"required\": [\"destination\", \"checkIn\", \"checkOut\", \"rooms\"],\n\"properties\": {\n\"destination\": { \"type\": \"string\" },\n\"checkIn\": { \"type\": \"string\", \"format\": \"date\" },\n\"checkOut\": { \"type\": \"string\", \"format\": \"date\" },\n\"rooms\": { \"type\": \"array\" },\n\"currency\": { \"type\": \"string\" }\n}\n}\n}\nThe phrase “Use for discovery only” is part of the safety model. It tells the agent that search output is not final authorization to book.\nThe underlying API performs the search. The MCP layer makes the capability legible to the agent.\nGood tools follow transaction boundaries\nOne tempting design is a giant tool:\nplan_and_book_my_trip(...)\nIt sounds convenient. It is difficult to inspect, authorize, retry, and recover.\nA safer travel toolset may separate capabilities:\nresolve_destination\nsearch_hotels\nget_hotel_details\nrecheck_hotel_offer\ncreate_booking\nget_booking_status\ncancel_booking_quote\nconfirm_cancellation\nEach tool corresponds to a meaningful state transition.\nThis gives the agent room to reason while preserving deterministic checkpoints:\nunderstand intent\n↓\nsearch_hotels\n↓\ncompare offers\n↓\nrecheck_hotel_offer\n↓\nshow final terms and request approval\n↓\ncreate_booking\n↓\nget_booking_status\nPayment can be a separate authorized flow rather than an invisible side effect of search or booking.\nTool descriptions are part of the product\nFor a normal API, an ambiguous endpoint description frustrates a developer during integration.\nFor an agent tool, ambiguity can become a wrong action at runtime.\nCompare these descriptions:\ncancel_booking: Cancels a booking.and:\ncancel_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.\nGood agent-facing documentation should specify:\nwhether a tool reads or mutates state;\nwhether it can create a financial consequence;\nwhether results can expire;\nwhich fields must be shown to the user;\nwhether a retry is safe;\nhow pending and partial failures are represented.\nErrors must help the agent recover\nTraditional APIs sometimes return an error code and a message written for engineers.\nAn agent needs structured recovery information.\n{\n\"error\": {\n\"code\": \"OFFER_PRICE_CHANGED\",\n\"retryable\": false,\n\"requiresUserApproval\": true,\n\"previousTotal\": {\n\"amount\": 392.20,\n\"currency\": \"USD\"\n},\n\"currentTotal\": {\n\"amount\": 407.80,\n\"currency\": \"USD\"\n},\n\"nextAction\": \"Present the new total and cancellation policy. Recheck only after the user accepts the change.\"\n}\n}\nThis is more useful than 400 Bad Request, and safer than letting the model invent a recovery strategy.\nContext should reduce friction, not remove\nconsent\nAn 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.\nBut context does not equal authorization.\nKnowing 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.\nThe architecture should separate:\ncontext: information the agent may use;\nintent: what the user is asking for now;\ndelegation: choices the user allows the agent to make;\nauthorization: approval for a consequential action.\nThis separation becomes especially important on wearables.\nClaude 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.\nWhat MCP does not solve\nMCP does not magically provide:\nhotel inventory;\nproperty and room normalization;\naccurate cancellation policies;\nprice confirmation;\npayment compliance;\nidempotent booking;\nsupplier reconciliation;\nrefunds or customer support.\nThose remain travel and transaction infrastructure problems.\nMCP can provide a standard way for agents to discover and call capabilities. The quality of those capabilities still depends on the systems behind them.\nAn unreliable booking API wrapped in an elegant MCP server remains unreliable.\nA practical way to decide\nUse a conventional API directly when:\nthe client is a fixed application;\nengineers control the workflow end to end;\nthe interface and sequence rarely change;\nthere is no need for runtime tool discovery.\nConsider an MCP layer when:\nmultiple AI clients need the same travel capability;\na model must select tools dynamically;\nyou want the capability to work across assistants and agent frameworks;\ntool semantics, approval boundaries, and recovery guidance need to travel with the interface;\nyou want to reduce custom integration code for every agent host.\nIn many systems, the answer is both:\nAgent host\n↓ MCP\nAgent-facing travel tools\n↓ internal APIs\nSearch, booking, payment, and service systems\nWhat we are building toward at Luluway\nThe goal of a Luluway travel tool layer is not to expose every internal endpoint to a model.\nIt is to expose a smaller set of capabilities that match how an agent should safely help a traveler:\ndiscover;\nunderstand;\ncompare;\nrecheck;\nbook with authorization;\nretrieve and service the order.\nOur 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.\nThe next challenge is to make that pattern portable across more agent environments without pretending every environment has the same interface or permission model.\nThe short answer\nA travel API answers:\nHow can software call this travel service?\nAn agent-facing MCP layer also has to answer:\nHow does an AI know when to call it, what the result means, what requires approval, and what to do next?\nThat is not a replacement for the API.\nIt is a contract for a new kind of client.\nPublishSave DraftRevert new changes\n🤖", "url": "https://wpnews.pro/news/mcp-vs-a-travel-api-what-changes-when-the-client-is-an-agent", "canonical_source": "https://dev.to/iamthedev/mcp-vs-a-travel-api-what-changes-when-the-client-is-an-agent-3ac0", "published_at": "2026-12-06 15:33:43+00:00", "updated_at": "2026-12-06 15:44:33.855396+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "large-language-models"], "entities": ["Luluway", "MCP"], "also_reported_by": [], "takeaway": "Expose agent tools as discrete transaction-boundary steps (search, recheck, book, cancel-quote) with descriptions that state when a tool may be used and that search results are not booking authorization, rather than one monolithic plan-and-book tool.", "recommendation": {"advice": "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.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/mcp-vs-a-travel-api-what-changes-when-the-client-is-an-agent", "markdown": "https://wpnews.pro/news/mcp-vs-a-travel-api-what-changes-when-the-client-is-an-agent.md", "text": "https://wpnews.pro/news/mcp-vs-a-travel-api-what-changes-when-the-client-is-an-agent.txt", "jsonld": "https://wpnews.pro/news/mcp-vs-a-travel-api-what-changes-when-the-client-is-an-agent.jsonld"}}