Skip to main content
Glama

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
NameRequiredDescriptionDefault
TaxEnvironmentIdsNoFilter 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 },
  • Registration of getAllTaxationsTool in the allTools array, making it available for execution.
    getAllTaxationsTool,
  • Import statement for getAllTaxationsTool from its implementation file.
    import { getAllTaxationsTool } from './configuration/getAllTaxations.js';

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/code-rabi/mews-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server