getAllTaxations
Retrieve all supported taxations from Mews hospitality platform to manage tax environments and configure financial settings.
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 execute function implementing the getAllTaxations tool logic, which parses input arguments and makes an HTTP request to the '/api/connector/v1/taxations/getAll' endpoint using 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 definition for the getAllTaxations tool, specifying an optional array of TaxEnvironmentIds.
inputSchema: { type: 'object', properties: { TaxEnvironmentIds: { type: 'array', items: { type: 'string' }, description: 'Filter by tax environment IDs' } }, additionalProperties: false }, - src/tools/index.ts:116-116 (registration)Registration of getAllTaxationsTool in the allTools array, making it available for execution.
getAllTaxationsTool, - src/tools/index.ts:31-31 (registration)Import statement for getAllTaxationsTool from its implementation file.
import { getAllTaxationsTool } from './configuration/getAllTaxations.js';