getAllCurrencies
Retrieve all available currencies supported by the Mews hospitality platform API for financial transactions and configuration.
Instructions
Returns all currencies supported by the API
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The execute handler function that calls the Mews API endpoint '/api/connector/v1/currencies/getAll' via mewsRequest utility and returns the result as formatted JSON text.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 for the getAllCurrencies tool, defining an empty object with no properties.inputSchema: { type: 'object', properties: {}, additionalProperties: false },
- src/tools/index.ts:114-114 (registration)Registration of getAllCurrenciesTool in the central allTools array used for tool registry and lookup.getAllCurrenciesTool,
- src/tools/index.ts:29-29 (registration)Import statement that brings the getAllCurrenciesTool into the index module for registration.import { getAllCurrenciesTool } from './configuration/getAllCurrencies.js';