getAllLanguages
Retrieve all supported languages from the Mews hospitality platform API to configure multilingual settings for customer and company management.
Instructions
Returns all languages supported by the API
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Handler function that executes the getAllLanguages tool by calling the Mews API endpoint '/api/connector/v1/languages/getAll' and returning the result as JSON.
async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const result = await mewsRequest(config, '/api/connector/v1/languages/getAll', {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } - Input schema defining no parameters for the getAllLanguages tool.
inputSchema: { type: 'object', properties: {}, additionalProperties: false }, - src/tools/index.ts:117-117 (registration)Registration of the getAllLanguagesTool in the central allTools array.
getAllLanguagesTool,