Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

get_agency_by_name

Retrieve a travel agency's details by entering its name. Use this tool to find specific agency information within the LumbreTravel system.

Instructions

Obtener una agencia por nombre, retorna la agencia encontrada.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNombre de la agencia

Implementation Reference

  • MCP tool execution handler: extracts 'name' argument, calls apiService.getAgencyByName, returns JSON-formatted agency data.
    case 'get_agency_by_name': { const { name } = args as { name: string } const agency = await this.apiService.getAgencyByName(name) return { content: [{ type: 'text', text: JSON.stringify(agency, null, 2) }] } }
  • Tool schema definition in listTools(): specifies name, description, and input schema requiring 'name' string.
    name: 'get_agency_by_name', description: 'Obtener una agencia por nombre, retorna la agencia encontrada.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre de la agencia' } }, required: ['name'] } },
  • API service helper: performs POST request to backend endpoint /agency/get_agencies_by_name with {name} body.
    async getAgencyByName (name: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/agency/get_agencies_by_name`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify({ name }) }) return await this.handleResponse<any>(response) }
  • src/index.ts:44-47 (registration)
    MCP server registration of tool handlers: CallToolRequestSchema routes to toolsHandler.callTool, ListToolsRequestSchema to listTools.
    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