delete_service
Remove a specific service from the LumbreTravel MCP Server by providing its unique ID, ensuring efficient management of travel programs and activities.
Instructions
Eliminar un servicio
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID del servicio a eliminar |
Implementation Reference
- src/handlers/tools.handler.ts:1527-1533 (handler)Handler implementation for the 'delete_service' MCP tool. Extracts the service ID from input arguments, invokes the ApiService.deleteService method, and formats the response as a text content block with JSON stringified result.case 'delete_service': { const { id } = args as { id: string } const service = await this.apiService.deleteService(id) return { content: [{ type: 'text', text: JSON.stringify(service, null, 2) }] } }
- Input schema definition for the 'delete_service' tool in the listTools method, specifying an object with a required 'id' string property.{ name: 'delete_service', description: 'Eliminar un servicio', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del servicio a eliminar' } }, required: ['id'] } },
- src/services/api.service.ts:705-711 (helper)Supporting ApiService method that performs an authenticated HTTP DELETE request to the backend API to delete a service resource by its ID.async deleteService (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/service/delete/${id}`, { method: 'DELETE', headers }) return await this.handleResponse<any>(response)