delete_provider
Remove a travel provider from the LumbreTravel system by specifying its unique identifier to manage your travel program data.
Instructions
Eliminar un proveedor.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "delete_provider"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID del proveedor a eliminar |
Implementation Reference
- src/handlers/tools.handler.ts:1647-1653 (handler)Handler logic for the 'delete_provider' MCP tool. Extracts the provider ID from arguments and calls the ApiService.deleteProvider method to perform the deletion, returning the result as JSON.
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)Tool registration entry in listTools() method, including name, description, and input schema for 'delete_provider'.
{ 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 delete_provider tool: requires a string 'id' parameter.
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)Supporting ApiService method that sends a DELETE request to the backend API to delete a provider by 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) }