Skip to main content
Glama

getLanguageTexts

Retrieve translations of texts in specified languages to support multi-language needs across the Mews hospitality platform. Input language codes and scope to fetch relevant text data.

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 method implementing the core logic of the getLanguageTexts tool: parses input args, forwards to mewsRequest API endpoint '/api/connector/v1/languages/getTexts', 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 defining the parameters for the tool: required LanguageCodes array and optional Scope string.
    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 },
  • Import statement bringing the getLanguageTextsTool into the index module.
    import { getLanguageTextsTool } from './configuration/getLanguageTexts.js';
  • Registration of the tool by including getLanguageTextsTool in the allTools array for global registry.
    getAllLanguagesTool, getLanguageTextsTool,

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