update_include
Modify and update the name and description of an included travel extra using a unique ID on the LumbreTravel MCP Server, ensuring accurate and current travel program details.
Instructions
Actualizar un extra o incluído.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | Descripción | |
| id | Yes | ID a actualizar | |
| name | Yes | Nombre |
Implementation Reference
- src/handlers/tools.handler.ts:1679-1685 (handler)Executes the update_include tool by extracting id, name, description from args, calling the ApiService updateInclude method, and returning the result as a JSON-formatted text content block.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) }] } }
- Defines the input schema for the update_include tool, specifying an object with required string properties: id, name, and description.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/handlers/tools.handler.ts:940-951 (registration)Registers the update_include tool in the listTools() response, providing 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)ApiService helper method that authenticates, sends a PUT request to the backend API endpoint /integrations/mcp/include/update with the update data, and handles the response.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)