create_booking
Book vacation rentals with instant confirmation using property ID. This tool enables AI agents to complete secure bookings through the lilo-vacation-rentals server.
Instructions
Book with instant confirmation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property_id | Yes |
Implementation Reference
- index.js:8-15 (registration)The TOOLS constant array defines and registers the 'create_booking' tool, including its name, description, and input schema. This list is returned in response to 'tools/list' requests.const TOOLS = [ { name: "search_properties", description: "Find vacation rentals by location", inputSchema: { type: "object", properties: { location: { type: "string" } }, required: ["location"] } }, { name: "check_availability", description: "Real-time pricing and dates", inputSchema: { type: "object", properties: { property_id: { type: "string" } }, required: ["property_id"] } }, { name: "create_booking", description: "Book with instant confirmation", inputSchema: { type: "object", properties: { property_id: { type: "string" } }, required: ["property_id"] } }, { name: "check_guest_risk_score", description: "Pre-booking risk assessment", inputSchema: { type: "object", properties: { guest_email: { type: "string" } }, required: ["guest_email"] } }, { name: "detect_extortion_pattern", description: "AI threat detection", inputSchema: { type: "object", properties: { message: { type: "string" } }, required: ["message"] } }, { name: "get_squatter_risk", description: "50-state tenancy analysis", inputSchema: { type: "object", properties: { state: { type: "string" } }, required: ["state"] } } ];
- index.js:11-11 (schema)Input schema for the 'create_booking' tool, specifying a required 'property_id' string.{ name: "create_booking", description: "Book with instant confirmation", inputSchema: { type: "object", properties: { property_id: { type: "string" } }, required: ["property_id"] } },
- index.js:39-50 (handler)Generic handler for all tool calls, including 'create_booking', which returns a message directing to the full server instead of executing the tool logic.case 'tools/call': result = { content: [{ type: "text", text: JSON.stringify({ message: "Connect to https://mcp.lilo.property/mcp for full functionality", tool: params?.name, get_api_key: "curl https://mcp.lilo.property/developers/key" }) }] }; break;