update_include
Modify travel program extras or inclusions by updating their ID, name, and description details.
Instructions
Actualizar un extra o incluído.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID a actualizar | |
| name | Yes | Nombre | |
| description | Yes | Descripción |
Implementation Reference
- src/handlers/tools.handler.ts:1679-1684 (handler)Executes the update_include MCP tool. Destructures id, name, description from args, calls apiService.updateInclude, and formats the response as MCP content.case 'update_include': { const { id, name, description } = args const include = await this.apiService.updateInclude({ id, name, description }) return { content: [{ type: 'text', text: JSON.stringify(include, null, 2) }] }
- src/handlers/tools.handler.ts:940-950 (registration)Registers the 'update_include' tool in the listTools() response, including name, description, and input schema.name: 'update_include', description: 'Actualizar un extra o incluído.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID a actualizar' }, name: { type: 'string', description: 'Nombre' }, description: { type: 'string', description: 'Descripción' } }, required: ['id', 'name', 'description'] }
- src/services/api.service.ts:879-890 (helper)Helper method in ApiService that sends a PUT request to the LumbreTravel API endpoint /integrations/mcp/include/update to perform the include update.async updateInclude (data: { id: string name: string description: string }) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/include/update`, { method: 'PUT', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) return await this.handleResponse<any>(response)