Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

get_provider_by_name

Search for travel providers by name to access their details and services within the LumbreTravel platform.

Instructions

Buscar proveedores por su nombre

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNombre del proveedor

Implementation Reference

  • The handler function in callTool that processes the 'get_provider_by_name' tool call, extracts the name argument, invokes the ApiService method, and returns the provider data as a JSON-formatted text response.
    case 'get_provider_by_name': { const { name } = args as { name: string } const provider = await this.apiService.getProviderByName(name) return { content: [{ type: 'text', text: JSON.stringify(provider, null, 2) }] } }
  • The tool definition in listTools(), including name, description, and inputSchema for validating arguments (requires 'name' string). This defines the tool's interface for MCP.
    { name: 'get_provider_by_name', description: 'Buscar proveedores por su nombre', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre del proveedor' } }, required: ['name'] } },
  • src/index.ts:36-48 (registration)
    Registers the MCP server request handlers for ListToolsRequestSchema (listing tools including get_provider_by_name) and CallToolRequestSchema (executing tool calls via toolsHandler).
    private setupHandlers (): void { // Configure handlers to list tools this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() ) // Configure handlers for tools this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) ) }
  • Helper method in ApiService that makes an authenticated POST request to the backend API endpoint to retrieve providers by name.
    async getProviderByName (name: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/provider/get_providers_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