Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

create_provider

Add new travel service providers to the LumbreTravel system by entering their name, description, contact details, and other required information.

Instructions

Crear un proveedor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNombre del proveedor
descriptionYesDescripción del proveedor
emailNoEmail del proveedor, si no tiene email se puede dejar en blanco
phoneNoTeléfono del proveedor, si no tiene teléfono se puede dejar en blanco

Implementation Reference

  • Handler function for the 'create_provider' tool within the callTool switch statement. Extracts arguments, calls ApiService.createProvider, and returns the JSON response.
    case 'create_provider': { const { name, description, phone, email } = args const provider = await this.apiService.createProvider({ name, description, phone, email }) return { content: [{ type: 'text', text: JSON.stringify(provider, null, 2) }] } }
  • Tool schema definition including name, description, and inputSchema for 'create_provider' in the listTools method.
    name: 'create_provider', description: 'Crear un proveedor.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre del proveedor' }, description: { type: 'string', description: 'Descripción del proveedor' }, email: { type: 'string', description: 'Email del proveedor, si no tiene email se puede dejar en blanco' }, phone: { type: 'string', description: 'Teléfono del proveedor, si no tiene teléfono se puede dejar en blanco' } }, required: ['name', 'description'] } },
  • ApiService.createProvider method that performs the HTTP POST request to the backend API to create a provider.
    async createProvider (data: { name: string description: string phone: string email: string }) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/provider/create`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) return await this.handleResponse<any>(response) }
  • src/index.ts:44-48 (registration)
    MCP server registration of the callTool handler, which dispatches to ToolsHandler.callTool based on tool name.
    this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) ) }
  • src/index.ts:38-41 (registration)
    MCP server registration of the listTools handler, which provides the tool list including 'create_provider'.
    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