get_company_tax_statistics
Retrieve company tax statistics data to simplify financial workflows with Norman Finance MCP Server. Access key insights for accounting and tax management in Germany.
Instructions
Get tax statistics for the company.
Returns:
Company tax statistics data
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- norman_mcp/tools/taxes.py:262-282 (handler)The main handler function for the 'get_company_tax_statistics' tool. It retrieves the company ID from the API client context and makes a GET request to the '/api/v1/companies/{company_id}/company-tax-statistic/' endpoint to fetch the tax statistics.@mcp.tool() async def get_company_tax_statistics(ctx: Context) -> Dict[str, Any]: """ Get tax statistics for the company. Returns: Company tax statistics data """ api = ctx.request_context.lifespan_context["api"] company_id = api.company_id if not company_id: return {"error": "No company available. Please authenticate first."} stats_url = urljoin( config.api_base_url, f"api/v1/companies/{company_id}/company-tax-statistic/" ) return api._make_request("GET", stats_url)
- norman_mcp/server.py:330-330 (registration)The top-level call to register_tax_tools(server), which registers all tax-related tools including 'get_company_tax_statistics' via their @mcp.tool() decorators.register_tax_tools(server)