delete_program
Remove a travel program from the LumbreTravel MCP Server by specifying its unique ID, enabling efficient program management and updates.
Instructions
Elimina un programa de viajes
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/handlers/tools.handler.ts:160-169 (registration)Registration of the 'delete_program' tool in the listTools method, including name, description, and input schema.name: 'delete_program', description: 'Elimina un programa de viajes', inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] } },
- src/handlers/tools.handler.ts:1211-1217 (handler)Handler implementation in callTool method that extracts the program ID from args and calls apiService.deleteProgram(id), returning the result as text content.case 'delete_program': { const { id } = args as { id: string } const program = await this.apiService.deleteProgram(id) return { content: [{ type: 'text', text: JSON.stringify(program, null, 2) }] } }
- Input schema definition for the 'delete_program' tool, requiring a string 'id'.type: 'object', properties: { id: { type: 'string' } }, required: ['id'] }
- src/services/api.service.ts:137-144 (helper)Helper method in ApiService that performs the actual DELETE API request to delete the program by ID using authenticated headers.async deleteProgram (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/programs/delete/${id}`, { method: 'DELETE', headers }) return await this.handleResponse<any>(response) }