getAllCurrencies
Retrieve all currencies supported by the Mews hospitality platform API to ensure accurate financial transactions and global operations.
Instructions
Returns all currencies supported by the API
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The execute function that implements the tool's core logic: calls the Mews API /api/connector/v1/currencies/getAll endpoint using mewsRequest helper and returns the JSON-formatted result.async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const result = await mewsRequest(config, '/api/connector/v1/currencies/getAll', {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- Input schema defining no parameters are required for the tool.inputSchema: { type: 'object', properties: {}, additionalProperties: false },
- src/tools/index.ts:111-119 (registration)Registration of getAllCurrenciesTool within the allTools array, the central export listing all available tools for the MCP server.// Configuration tools getConfigurationTool, getAllCountriesTool, getAllCurrenciesTool, getAllTaxEnvironmentsTool, getAllTaxationsTool, getAllLanguagesTool, getLanguageTextsTool,
- src/tools/index.ts:29-29 (registration)Import statement that brings the tool into the index module for registration.import { getAllCurrenciesTool } from './configuration/getAllCurrencies.js';