Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

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
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • 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'] } },
  • 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'] }
  • 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) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lumile/lumbretravel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server