list_service_languages
Retrieve available languages to associate with a service in LumbreTravel's travel programs, ensuring accurate communication and service customization in travel activities.
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:230-236 (registration)Registration of the 'list_service_languages' tool, including its name, description, and empty input schema.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/handlers/tools.handler.ts:1287-1295 (handler)Handler in ToolsHandler.callTool that invokes ApiService.getServiceLanguages() and formats the response as text content.case 'list_service_languages': { const serviceLanguages = await this.apiService.getServiceLanguages() return { content: [{ type: 'text', text: JSON.stringify(serviceLanguages, null, 2) }] } }
- src/services/api.service.ts:410-417 (helper)Implementation in ApiService that fetches the list of service languages via GET request to the backend API endpoint.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) }