Skip to main content
Glama

getLanguageTexts

Retrieve translated texts for specified languages and scope from the Mews hospitality platform to support multilingual operations.

Instructions

Returns translations of texts in the specified languages

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
LanguageCodesYesArray of language codes to get translations for
ScopeNoScope of texts to retrieve

Implementation Reference

  • The async execute handler function that parses arguments, calls the Mews API via mewsRequest to fetch language texts, and returns formatted JSON result.
    async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const inputArgs = args as Record<string, unknown>; const requestData = { ...inputArgs }; const result = await mewsRequest(config, '/api/connector/v1/languages/getTexts', requestData); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema specifying LanguageCodes (required array of language codes) and optional Scope for retrieving translations.
    inputSchema: { type: 'object', properties: { LanguageCodes: { type: 'array', items: { type: 'string' }, description: 'Array of language codes to get translations for' }, Scope: { type: 'string', description: 'Scope of texts to retrieve' } }, required: ['LanguageCodes'], additionalProperties: false },
  • Registers getLanguageTextsTool in the central allTools array for MCP tool availability.
    getAllLanguagesTool, getLanguageTextsTool,
  • Imports the getLanguageTextsTool implementation to make it available for registration.
    import { getLanguageTextsTool } from './configuration/getLanguageTexts.js';

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/code-rabi/mews-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server