Stays MCP server

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_stays result and wants to know more.
  • You hold a placeId from 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

ParameterTypeRequiredNotes
placeIdstringyesUUID. 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.

FieldTypeAlways presentNotes
placeIdstringyesUUID.
namestringyesAt least 1 character.
accommodationTypestring or nullyes
addressobjectyes
address.citystring or nullyes
address.countrystring or nullyes
customerUrlstring or nullyesURL.
descriptionstring or nullyes
starRatingnumbernoAbove 0, up to 5. Hotel star rating, 1 to 5.
imagesarray of stringnoUp to 10 items. Each: Up to 2048 characters. Each: Pattern ^https:\/\/. Up to 10 photo URLs.
  • description is plain text of up to 2,000 characters, or null.
  • customerUrl is the plain property page, without dates. To send the user to Nsuna with dates and guests, use the customerUrl from the dated search result.

Annotations

AnnotationValue
readOnlyHinttrue
destructiveHintfalse
openWorldHinttrue

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.