create_include
Add optional extras or inclusions to travel programs by defining names and descriptions for enhanced booking customization.
Instructions
Crear un extra o incluído.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Nombre | |
| description | Yes | Descripción |
Implementation Reference
- src/handlers/tools.handler.ts:1671-1677 (handler)Handler implementation for the 'create_include' tool. Extracts name and description from arguments, calls ApiService.createInclude, and returns the JSON response.case 'create_include': { const { name, description } = args const include = await this.apiService.createInclude({ name, description }) return { content: [{ type: 'text', text: JSON.stringify(include, null, 2) }] } }
- Schema definition for the 'create_include' tool, including input schema requiring 'name' and 'description' strings.name: 'create_include', description: 'Crear un extra o incluído.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre' }, description: { type: 'string', description: 'Descripción' } }, required: ['name', 'description'] }
- src/handlers/tools.handler.ts:927-938 (registration)The 'create_include' tool is registered in the listTools() method's tools array, advertised to MCP clients.{ name: 'create_include', description: 'Crear un extra o incluído.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre' }, description: { type: 'string', description: 'Descripción' } }, required: ['name', 'description'] } },
- src/services/api.service.ts:866-877 (helper)Helper method in ApiService that performs the HTTP POST request to create an include via the LumbreTravel API.async createInclude (data: { name: string description: string }) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/include/create`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) return await this.handleResponse<any>(response) }