delete_provider
Remove a provider from the LumbreTravel MCP Server by specifying its unique ID. Simplifies management of travel programs and related entities.
Instructions
Eliminar un proveedor.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID del proveedor a eliminar |
Implementation Reference
- src/handlers/tools.handler.ts:1647-1653 (handler)The handler function for the 'delete_provider' tool, which extracts the id from args, calls apiService.deleteProvider(id), and returns the JSON stringified response.case 'delete_provider': { const { id } = args as { id: string } const provider = await this.apiService.deleteProvider(id) return { content: [{ type: 'text', text: JSON.stringify(provider, null, 2) }] } }
- src/handlers/tools.handler.ts:1042-1046 (registration)Registration of the 'delete_provider' tool in listTools(), including its name, description, and input schema requiring a string id.{ name: 'delete_provider', description: 'Eliminar un proveedor.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del proveedor a eliminar' } }, required: ['id'] } },
- Input schema definition for the delete_provider tool: requires an object with 'id' property of type string.{ name: 'delete_provider', description: 'Eliminar un proveedor.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del proveedor a eliminar' } }, required: ['id'] } },
- src/services/api.service.ts:641-648 (helper)ApiService helper method that performs the HTTP DELETE request to the backend API to delete a provider by its id.async deleteProvider (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/provider/delete/${id}`, { method: 'DELETE', headers }) return await this.handleResponse<any>(response) }