list_service_languages
Retrieve available languages for associating with travel activity services in travel programs.
Instructions
Obtiene todos los idiomas para asociar a una actividad en un programa de viajes. Estos idiomas solo se pueden usar para asociar a un servicio.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/handlers/tools.handler.ts:1287-1295 (handler)Handler implementation for the 'list_service_languages' tool. It calls apiService.getServiceLanguages() and returns the JSON stringified result as text content.case 'list_service_languages': { const serviceLanguages = await this.apiService.getServiceLanguages() return { content: [{ type: 'text', text: JSON.stringify(serviceLanguages, null, 2) }] } }
- Input schema definition for the 'list_service_languages' tool in the listTools() method. No input parameters required.{ name: 'list_service_languages', description: 'Obtiene todos los idiomas para asociar a una actividad en un programa de viajes. Estos idiomas solo se pueden usar para asociar a un servicio.', inputSchema: { type: 'object', properties: {} } },
- src/services/api.service.ts:410-417 (helper)ApiService method that performs the actual GET request to retrieve service languages from the LumbreTravel API.async getServiceLanguages () { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/servicelanguages`, { method: 'GET', headers }) return await this.handleResponse<any[]>(response) }
- src/index.ts:38-47 (registration)MCP server request handlers registration for tool listing (ListToolsRequestSchema) and tool calling (CallToolRequestSchema), which invoke the ToolsHandler methods containing the tool implementation.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) )