Skip to main content
Glama

OpenData Best Web Intelligence (x402 USDC)

Trip.com Hotels Trains and Attractions Data: Search Trip.com hotels, trains and attractions

trip_com__search
Read-only

[Trip.com Hotels Trains and Attractions Data] Search Trip.com hotels, trains and attractions. Query Trip.com hotel rates, train itineraries and attractions across global Trip.com country sites. x402 price: $0.0050/row USDC (max 20 rows; 0 rows / errors are never charged).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "trip_com__search"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoHotel result ordering preference, such as RECOMMENDED. Available ordering depends on the selected search.RECOMMENDED
roomsNoNumber of hotel rooms
adultsNoNumber of adult travelers
domainNoRegional Trip.com host (e.g. www.trip.com, ph.trip.com, uk.trip.com, jp.trip.com).www.trip.com
localeNoLanguage setting, such as en_US or en_GB. Set it explicitly when changing regional domains.en_US
originNoDeparture city for a train route, such as Tokyo. Use with destination and service set to trains.
checkinNoHotels: check-in date (year-month-day). Leave empty to search 21 days from today.
serviceNoChoose hotels, trains or attractions. Flights, cars and packages are not available.hotels
checkoutNoHotels: check-out date (year-month-day). Leave empty for a two-night stay.
childrenNoNumber of children
currencyNoRequested currency code, such as USD or GBP. Set it explicitly when changing regional domains.USD
regionIdNoOptional Trip.com city id (for example Bangkok = 359). Use it instead of Destination, or together with it for more precise hotel results.
tripTypeNoReserved setting. Keep the default for the supported travel services.oneway
maxResultsNoMaximum rows for this destination or region, from 1 to 500 (default 70); delivery also stops at your maximum run cost. Free platform plan users are limited to 200 rows per run and 10 runs of this Actor.
returnDateNoReserved setting. Leave empty for the supported travel services.
destinationNoCity or region to search, for example Bangkok or Tokyo. Leave it empty if you fill in City ID.
departureDateNoOptional train search date in YYYY-MM-DD format. Published route offers are not guaranteed to match this date.
enrichDetailsNoAdd available public hotel contacts and address details, or attach available attraction offers to the listing row. Off by default; additional details are not guaranteed.
includeSponsoredNoInclude sponsored ad cards in results

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds genuinely useful economics — $0.0050/row, a 20-row cap, and the explicit guarantee that zero-row results or errors are never charged. That partial-failure-cost disclosure is the kind of detail an agent cannot get from the annotations. One caveat: the stated 20-row cap conflicts with the schema's maxResults prose ('1 to 500 (default 70)'), leaving the actual row ceiling ambiguous.

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?

Three compact sentences, front-loaded with the verb and resource, and the cost terms come last where they belong. The bracketed '[Trip.com Hotels Trains and Attractions Data]' prefix restates the title and earns no space, but the rest is tight.

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?

For a 19-parameter, zero-required tool the description covers the search surface and the billing model, and the per-parameter semantics are fully carried by the schema. Missing is any indication of what a returned row looks like or how results are ordered/paged, which matters because there is no output schema to fall back on.

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 description coverage is 100%, so every one of the 19 parameters is already documented in structured data and the baseline of 3 applies. The description adds almost no parameter meaning beyond the phrase 'across global country sites,' which merely gestures at the domain/locale/currency pairing already spelled out in the schema.

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 — search Trip.com hotels, trains and attractions — and enumerates the underlying data types (hotel rates, train itineraries, attractions) plus the scope (global Trip.com country sites). Against a sibling list made up entirely of other platforms' *_com__search tools, the platform name plus the three-service coverage is enough to pick this one unambiguously.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the platform name and the enumerated services, but the description never says when to choose this over a competing platform search or how to decide which service to request. The 'flights, cars and packages are not available' exclusion lives in the schema's service description, not in the description text, so the top-level guidance is thinner than it could be.

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