Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

update_leader

Modify guide details in the LumbreTravel MCP Server by updating their ID, name, description, phone, email, and language for accurate travel program management.

Instructions

Actualizar un guía

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionYesDescripción del guía
emailYesEmail del guía
idYesID del guía a actualizar
languageYesIdioma del guía de acuerdo a ISO 639-1. NO intentes usar 'list_service_languages' ni 'get_service_language_by_name' para obtener el idioma del guía.
nameYesNombre del guía
phoneYesTeléfono del guía

Implementation Reference

  • Handler implementation for the 'update_leader' MCP tool. Extracts arguments from input and delegates to ApiService.updateLeader, then formats response.
    case 'update_leader': { const { id, name, description, phone, email, language } = args const leader = await this.apiService.updateLeader({ id, name, description, phone, email, language }) return { content: [{ type: 'text', text: JSON.stringify(leader, null, 2) }] } }
  • Input schema definition for the 'update_leader' tool in listTools method, defining required parameters and descriptions.
    { name: 'update_leader', description: 'Actualizar un guía', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del guía a actualizar' }, name: { type: 'string', description: 'Nombre del guía' }, description: { type: 'string', description: 'Descripción del guía' }, phone: { type: 'string', description: 'Teléfono del guía' }, language: { type: 'string', description: "Idioma del guía de acuerdo a ISO 639-1. NO intentes usar 'list_service_languages' ni 'get_service_language_by_name' para obtener el idioma del guía." }, email: { type: 'string', description: 'Email del guía' } }, required: ['id', 'name', 'description', 'phone', 'email', 'language'] } },
  • ApiService.updateLeader method, which makes the HTTP PUT request to the backend API to update leader data.
    async updateLeader (data: { id: string name: string description: string phone: string email: string language: string }) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/leader/update`, { method: 'PUT', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) return await this.handleResponse<any>(response)
  • src/index.ts:44-47 (registration)
    Server registration for CallToolRequestSchema, which routes tool calls (including 'update_leader') to ToolsHandler.callTool.
    this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )
  • src/index.ts:38-41 (registration)
    Server registration for ListToolsRequestSchema, which provides the tool list including 'update_leader' schema.
    this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() )

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