Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

delete_passenger

Remove a passenger from the LumbreTravel system using their unique ID to manage travel program data effectively and maintain accurate records.

Instructions

Elimina un pasajero teniendo en cuenta que se conoce su ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
passengerIdYes

Implementation Reference

  • Registration of the 'delete_passenger' tool including its name, description, and input schema in the listTools method.
    name: 'delete_passenger', description: 'Elimina un pasajero teniendo en cuenta que se conoce su ID', inputSchema: { type: 'object', properties: { passengerId: { type: 'string' } }, required: ['passengerId'] } },
  • The handler function in callTool that processes the 'delete_passenger' tool call by invoking the API service and returning the result.
    case 'delete_passenger': { const { passengerId } = args as { passengerId: string } const deletedPassenger = await this.apiService.deletePassenger(passengerId) return { content: [{ type: 'text', text: JSON.stringify(deletedPassenger, null, 2) }] } }
  • Helper method in ApiService that sends a DELETE HTTP request to the backend API to delete a passenger by ID.
    async deletePassenger (passengerId: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/passengers/delete/${passengerId}`, { 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