getAllCountries
Retrieve a list of all countries supported by the Mews API to enable global hospitality operations, including customer management, reservations, and financial transactions.
Instructions
Returns all countries supported by the API
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The execute function that performs the core logic: calls the Mews API to get all countries and returns the result as formatted JSON.async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const result = await mewsRequest(config, '/api/connector/v1/countries/getAll', {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- Input schema specifying no input parameters are required.inputSchema: { type: 'object', properties: {}, additionalProperties: false },
- src/tools/index.ts:28-28 (registration)Import statement that brings the tool definition into the central index.import { getAllCountriesTool } from './configuration/getAllCountries.js';
- src/tools/index.ts:113-113 (registration)Adds the tool to the allTools array for global registration.getAllCountriesTool,