Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

get_leader_by_name

Search for travel guides by name to find specific leaders for your travel programs and activities using the LumbreTravel API.

Instructions

Buscar guías por su nombre.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNombre del guía

Implementation Reference

  • Handler logic for the 'get_leader_by_name' tool: extracts 'name' from args, calls apiService.getLeaderByName(name), and returns the result as JSON text content.
    case 'get_leader_by_name': { const { name } = args as { name: string } const leader = await this.apiService.getLeaderByName(name) return { content: [{ type: 'text', text: JSON.stringify(leader, null, 2) }] } }
  • Input schema definition for the 'get_leader_by_name' tool, specifying a required 'name' string parameter.
    { name: 'get_leader_by_name', description: 'Buscar guías por su nombre.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre del guía' } }, required: ['name'] } },
  • The tool is registered in the listTools() method which returns the list of available tools including 'get_leader_by_name'.
    ] } }
  • Helper method in ApiService that performs a POST request to the backend API endpoint '/integrations/mcp/leader/get_leaders_by_name' with the leader name to retrieve leader data.
    async getLeaderByName (name: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/leader/get_leaders_by_name`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify({ name }) }) 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