getAllTaxations
Retrieve all supported taxations across specific tax environments using the Mews MCP server, enabling streamlined financial and compliance management in hospitality operations.
Instructions
Returns all taxations supported in tax environments
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| TaxEnvironmentIds | No | Filter by tax environment IDs |
Implementation Reference
- The main handler function for the getAllTaxations tool. It processes input arguments and makes an HTTP request to the Mews API endpoint '/api/connector/v1/taxations/getAll' using the mewsRequest utility.async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const inputArgs = args as Record<string, unknown>; const requestData = { ...inputArgs }; const result = await mewsRequest(config, '/api/connector/v1/taxations/getAll', requestData); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- Input schema for the getAllTaxations tool, defining an optional array of TaxEnvironmentIds for filtering.inputSchema: { type: 'object', properties: { TaxEnvironmentIds: { type: 'array', items: { type: 'string' }, description: 'Filter by tax environment IDs' } }, additionalProperties: false },
- src/tools/index.ts:31-31 (registration)Import statement registering the getAllTaxationsTool in the central tools index.import { getAllTaxationsTool } from './configuration/getAllTaxations.js';
- src/tools/index.ts:116-116 (registration)Inclusion of getAllTaxationsTool in the allTools array for global tool registry.getAllTaxationsTool,