create_include
Generate travel program extras or inclusions by specifying a name and description using LumbreTravel MCP Server’s API integration for streamlined activity management.
Instructions
Crear un extra o incluído.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | Descripción | |
| name | Yes | Nombre |
Implementation Reference
- src/handlers/tools.handler.ts:1671-1677 (handler)The handler logic for the 'create_include' MCP tool. It extracts name and description from arguments, calls ApiService.createInclude, and returns the result as JSON text content.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) }] } }
- The schema and registration of the 'create_include' tool in the listTools() method, defining input schema with name and description as required 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/services/api.service.ts:866-877 (helper)The supporting ApiService method that performs the HTTP POST request to create an include via the backend 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) }
- src/index.ts:44-46 (registration)The server registration for handling CallTool requests, which routes to ToolsHandler.callTool based on tool name, enabling execution of create_include.this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server)