getAllTaxEnvironments
Retrieve all supported tax environments available in the Mews API for accurate financial or operational configurations in hospitality systems.
Instructions
Returns all tax environments 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/taxEnvironments/getAll' to retrieve all tax environments and returns the JSON stringified result.async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const result = await mewsRequest(config, '/api/connector/v1/taxEnvironments/getAll', {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- The inputSchema definition for the tool, specifying an empty object with no properties.inputSchema: { type: 'object', properties: {}, additionalProperties: false },
- src/tools/index.ts:30-30 (registration)Import statement that brings the getAllTaxEnvironmentsTool into the index for registration.import { getAllTaxEnvironmentsTool } from './configuration/getAllTaxEnvironments.js';
- src/tools/index.ts:115-115 (registration)Inclusion of getAllTaxEnvironmentsTool in the allTools array used for tool registry and lookup.getAllTaxEnvironmentsTool,