{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 400,
      "description": "What the guest wants, in plain language: 'near the river, pet friendly, 2 adults'. Dates in the text are read too, but the date fields win."
    },
    "destination": {
      "description": "City or place name, with country when ambiguous: 'Peterborough, United Kingdom'. Strongly recommended; the parser is more reliable with it separate.",
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "checkin": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Check-in date, YYYY-MM-DD."
    },
    "checkout": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Check-out date, YYYY-MM-DD. Must be after checkin."
    },
    "adults": {
      "default": 2,
      "description": "Adults across all rooms.",
      "type": "integer",
      "minimum": 1,
      "maximum": 30
    },
    "rooms": {
      "default": 1,
      "description": "Number of rooms.",
      "type": "integer",
      "minimum": 1,
      "maximum": 30
    },
    "children_ages": {
      "default": [],
      "description": "Age of each child at check-in.",
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 17
      }
    },
    "currency": {
      "description": "ISO 4217 code to quote in. Defaults to the market's currency.",
      "type": "string",
      "minLength": 3,
      "maxLength": 3
    },
    "max_results": {
      "default": 12,
      "type": "integer",
      "minimum": 1,
      "maximum": 48
    }
  },
  "required": [
    "query"
  ],
  "title": "search_stays input",
  "description": "Find hotels for a place, dates and party. Returns up to 48 properties with an indicative nightly and total, rating and a URL that carries the dates.",
  "x-source": "https://callstay.com/api/mcp tools/list (2026-11-03), inputSchema verbatim"
}