Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

delete_leader

Remove a guide by specifying their unique ID to manage travel programs and activities effectively within the LumbreTravel MCP Server.

Instructions

Eliminar un guía

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID del guía a eliminar

Implementation Reference

  • The execution handler for the 'delete_leader' tool. It extracts the leader ID from arguments, calls ApiService.deleteLeader(id), and returns the result as a text content response.
    case 'delete_leader': { const { id } = args as { id: string } const leader = await this.apiService.deleteLeader(id) return { content: [{ type: 'text', text: JSON.stringify(leader, null, 2) }] } }
  • Tool schema definition including name, description, and input schema requiring a string 'id' for the leader to delete.
    { name: 'delete_leader', description: 'Eliminar un guía', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del guía a eliminar' } }, required: ['id'] } },
  • src/index.ts:38-41 (registration)
    Registers the listTools handler on the MCP server, which includes the 'delete_leader' tool in its returned list.
    this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() )
  • ApiService helper method that sends a DELETE request to the backend API to delete a leader by ID.
    async deleteLeader (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/leader/delete/${id}`, { method: 'DELETE', headers }) return await this.handleResponse<any>(response) }
  • src/index.ts:43-47 (registration)
    Registers the callTool handler on the MCP server, which handles execution of 'delete_leader' when called.
    // 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