Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

create_service_language

Generate and manage service languages for travel programs using the LumbreTravel MCP Server, ensuring accurate API communication and resource localization.

Instructions

Crear un idioma de servicio.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNombre del idioma de servicio

Implementation Reference

  • MCP tool execution handler: destructures args, calls ApiService.createServiceLanguage, and returns the result as text content.
    case 'create_service_language': { const { name, description } = args const serviceLanguage = await this.apiService.createServiceLanguage({ name, description }) return { content: [{ type: 'text', text: JSON.stringify(serviceLanguage, null, 2) }] } }
  • Tool schema definition including name, description, and input schema (requires 'name').
    name: 'create_service_language', description: 'Crear un idioma de servicio.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre del idioma de servicio' } }, required: ['name'] }
  • src/index.ts:38-47 (registration)
    MCP server registration: sets handlers for listing tools and calling tools, delegating to ToolsHandler.
    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) )
  • Supporting ApiService method: sends POST request to backend API to create a new service language.
    async createServiceLanguage (data: { name: string description: string }) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/servicelanguage/create`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) 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