Search Supply
search_supplyUse this when the user wants to find something bookable in a place: a tour, activity, stay, meal or ride, or anything else they describe. Results are the listings Zestli can book there; which kinds exist differs by place, and an empty result with its message is the answer, not a fault. warming=true means more listings are still being gathered, or the user's photo is still being matched, so search again shortly (with the same photo) instead of reporting none. A message with warming=false can say that gathering ended with incomplete coverage; keep that warning with the results. Where a result is for reference only and cannot be booked, message says so. Unpriced listings say price_requires_availability_check. Returns supply records without a preference score (pass a result's supply_id to create_quote), with cursor pagination. A 'query' in the user's own words and language orders results by query_relevance, highest first: word or meaning matches, then other listings, each group by query_relevance. total_count counts the matches. query_match names the retrieval basis (literal or semantic), not a verification. message says which results match and which are shown for comparison; it is written for the user, so you can relay it. query_image_url (a public https photo link the user shared), or query_image (a photo the user uploaded), also returns the listings whose own photos look most like it, with query_match looks_like_photo (see query_match before suggesting one). When relevance is null it was not checked; judge each against the request. Results with next_available_date match but are not available on the requested dates; offer their next date instead. If the user names an offering but no place, omit destination and pass the name as query to look it up everywhere (up to 25, no paging, dates and filters not applied); never guess places, and never offer a different listing because none has that name. Not for checking a known item's availability (use check_availability) or for pricing (use create_quote). Pass the user's currency as currency whenever you know it, signed in or not.
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": {
"request": "<request>"
},
"name": "search_supply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | Input for searching travel supply. | |
| query_image | No | A photo the user uploaded, used like request.query_image_url (needs request.destination and request.category). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | ||
| results | No | ||
| warming | No | ||
| search_id | Yes | ||
| error_code | No | ||
| is_sandbox | No | ||
| next_cursor | No | ||
| total_count | No | ||
| origin_options | No | ||
| searched_origin | No | ||
| destination_options | No | ||
| searched_destination | No | ||
| unavailable_for_dates | No | ||
| accessibility_stated_no | No | ||
| accessibility_not_stated | No | ||
| accessibility_in_room_not_stated | No |