Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

delete_activities

Remove multiple activities linked to a travel program by specifying the program ID and activity IDs. Ensure caution as this action is irreversible.

Instructions

Eliminar múltiples actividades asociadas a un programa

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activitiesYesLista de actividades a eliminar. Es importante avisarle al usuario que esta acción es irreversible y que se debe tener cuidado al eliminar actividades.
programIdYesID del programa

Implementation Reference

  • Executes the logic for the 'delete_activities' tool by calling the ApiService.deleteActivities method with the provided programId and list of activityIds, then returns the result as JSON text.
    case 'delete_activities': { const { programId, activities } = args const deletedActivities = await this.apiService.deleteActivities({ programId, activities }) return { content: [{ type: 'text', text: JSON.stringify(deletedActivities, null, 2) }] } }
  • Defines the input schema, description, and parameters for the 'delete_activities' tool returned by listTools().
    name: 'delete_activities', description: 'Eliminar múltiples actividades asociadas a un programa', inputSchema: { type: 'object', properties: { programId: { type: 'string', description: 'ID del programa' }, activities: { type: 'array', description: 'Lista de actividades a eliminar. Es importante avisarle al usuario que esta acción es irreversible y que se debe tener cuidado al eliminar actividades.', items: { type: 'object', properties: { activityId: { type: 'string', description: 'ID de la actividad a eliminar' } }, required: ['activityId'] } } }, required: ['programId', 'activities'] } },
  • ApiService helper method that performs the HTTP POST request to the backend API endpoint for deleting activities, using authenticated headers.
    async deleteActivities (data: { programId: string activities: Array<{ activityId: string }> }) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/programs/activity/delete`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) return await this.handleResponse<any>(response) }
  • src/index.ts:38-48 (registration)
    Registers the ToolsHandler's listTools and callTool methods with the MCP server for handling tool requests.
    this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() ) // Configure handlers for tools this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) ) }

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