Skip to main content
Glama
norman-finance

Norman Finance MCP Server

Official

get_tax_report

Retrieve detailed tax report information using a specific report ID. Streamline tax management and access essential financial data for accurate accounting and compliance.

Instructions

Retrieve a specific tax report.

Args:
    report_id: Public ID of the tax report to retrieve
    
Returns:
    Tax report details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
report_idYes

Implementation Reference

  • The handler function for the 'get_tax_report' MCP tool. It takes a report_id parameter, constructs the API URL, and makes a GET request to retrieve the tax report details.
    @mcp.tool()
    async def get_tax_report(
        ctx: Context,
        report_id: str = Field(description="Public ID of the tax report to retrieve")
    ) -> Dict[str, Any]:
        """
        Retrieve a specific tax report.
        
        Args:
            report_id: Public ID of the tax report to retrieve
            
        Returns:
            Tax report details
        """
        api = ctx.request_context.lifespan_context["api"]
        
        report_url = urljoin(
            config.api_base_url,
            f"api/v1/taxes/reports/{report_id}/"
        )
        
        return api._make_request("GET", report_url)
  • Invocation of register_tax_tools(server) which registers the get_tax_report tool among other tax tools.
    register_tax_tools(server)
  • The register_tax_tools function that defines and registers all tax tools, including get_tax_report, using @mcp.tool() decorators.
    def register_tax_tools(mcp):
        """Register all tax-related tools with the MCP server."""
  • Pydantic Field defining the input schema for the report_id parameter of the get_tax_report tool.
    report_id: str = Field(description="Public ID of the tax report to retrieve")

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/norman-finance/norman-mcp-server'

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