get_stay
Returns the public details of one property: its description, photos, star rating, address and a link to it on Nsuna.
When to use it
- The user picks a stay from a
search_staysresult and wants to know more. - You hold a
placeIdfrom an earlier search and need the property’s description or more photos.
It takes no dates and returns no price or availability. Those come from search_stays.
Inputs
| Parameter | Type | Required | Notes |
|---|---|---|---|
placeId | string | yes | UUID. The property UUID returned by search_stays. |
The UUID is accepted in any letter case. Unknown arguments are rejected.
Output
structuredContent has these fields. content carries the property name and location as text.
| Field | Type | Always present | Notes |
|---|---|---|---|
placeId | string | yes | UUID. |
name | string | yes | At least 1 character. |
accommodationType | string or null | yes | |
address | object | yes | |
address.city | string or null | yes | |
address.country | string or null | yes | |
customerUrl | string or null | yes | URL. |
description | string or null | yes | |
starRating | number | no | Above 0, up to 5. Hotel star rating, 1 to 5. |
images | array of string | no | Up to 10 items. Each: Up to 2048 characters. Each: Pattern ^https:\/\/. Up to 10 photo URLs. |
descriptionis plain text of up to 2,000 characters, ornull.customerUrlis the plain property page, without dates. To send the user to Nsuna with dates and guests, use thecustomerUrlfrom the dated search result.
Annotations
| Annotation | Value |
|---|---|
readOnlyHint | true |
destructiveHint | false |
openWorldHint | true |
Example
Request (params of tools/call):
{
"name": "get_stay",
"arguments": {
"placeId": "a29e43e1-466c-4ffa-a73c-cda75cd5a0f0"
}
}
Result, with one of ten photo URLs kept and the description cut short:
{
"content": [
{
"type": "text",
"text": "Taj Cape Town — Cape Town, South Africa"
}
],
"structuredContent": {
"placeId": "a29e43e1-466c-4ffa-a73c-cda75cd5a0f0",
"name": "Taj Cape Town",
"accommodationType": "Hotel",
"address": {
"city": "Cape Town",
"country": "South Africa"
},
"customerUrl": "https://app.nsuna.com/stays/a29e43e1-466c-4ffa-a73c-cda75cd5a0f0",
"starRating": 5,
"images": [
"https://i.travelapi.com/lodging/4000000/3020000/3016400/3016361/c3d35b9f_z.jpg"
],
"description": "Near Africa Centre Location: With a stay at Taj Cape Town, you'll be centrally located in Cape Town, within a 10-minute walk of Company's Garden and Kloof Street. …"
}
}
Edge cases
Unknown placeId
A well-formed UUID that is not a stay returns a tool error (isError: true):
Stay not found.
Malformed placeId
Input validation error: Invalid arguments for tool get_stay: placeId: must be the stay UUID returned by search_stays, e.g. 00000000-0000-4000-8000-000000000000. Correct this argument and call get_stay again.