getAllTaxEnvironments
Retrieve all available tax environments from the Mews hospitality platform to configure tax settings for properties and transactions.
Instructions
Returns all tax environments supported by the API
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The execute function that performs the core logic: calls the Mews API for all tax environments and formats the result as JSON.
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) }] }; } - Input schema defining no required parameters (empty object).
inputSchema: { type: 'object', properties: {}, additionalProperties: false }, - src/tools/index.ts:111-119 (registration)Registration of getAllTaxEnvironmentsTool in the allTools array export, used for tool registry and lookup.
// Configuration tools getConfigurationTool, getAllCountriesTool, getAllCurrenciesTool, getAllTaxEnvironmentsTool, getAllTaxationsTool, getAllLanguagesTool, getLanguageTextsTool, - src/tools/index.ts:30-30 (registration)Import of the tool definition for inclusion in the tools registry.
import { getAllTaxEnvironmentsTool } from './configuration/getAllTaxEnvironments.js';