getAllLanguages
Retrieve all languages supported by the Mews API to ensure compatibility and localization in customer and company management, reservations, and financial transactions.
Instructions
Returns all languages supported by the API
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function that makes an HTTP request to the Mews API endpoint '/api/connector/v1/languages/getAll' and returns the result as formatted 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) }] }; }
- The input schema defining no required properties for the tool.inputSchema: { type: 'object', properties: {}, additionalProperties: false },
- src/tools/index.ts:117-117 (registration)Registration of the getAllLanguagesTool in the allTools array for global tool registry.getAllLanguagesTool,
- src/tools/index.ts:32-32 (registration)Import of the getAllLanguagesTool for inclusion in the tools registry.import { getAllLanguagesTool } from './configuration/getAllLanguages.js';