MCP vs. a Travel API: What Changes When the Client Is an Agent?
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,…
For agents, APIs alone are insufficient. Travel APIs can search properties, return rates, create bookings, and cancel orders. However, MCP provides a model-facing contract that makes the capabilities understandable and safely usable by the agent. It adds a model-facing contract with names, descriptions, and input schemas that agents can inspect.
Good tools follow transaction boundaries, separating capabilities like resolve_destination, search_hotels, get_hotel_details, recheck_hotel_offer, create_booking, get_booking_status, and cancel_booking. This allows the agent to reason while preserving deterministic checkpoints. Each tool corresponds to a meaningful state transition.
Tool descriptions should specify whether they read or mutate state, create financial consequences, have expiring results, require user approval, and how to handle pending and partial failures. Errors should help the agent recover by providing structured information about the error code, retryability, previous and current totals, and the next action.
Context is important, but it does not equal authorization. The agent needs separate information about context, intent, delegation, and authorization. Separating these elements is especially crucial on wearables where voice interaction, permission-based device context, and cards for approving tool actions become relevant.
Rewritten by urgent.news; may contain errors — check the original. How we use AI.
Source: dev.to