get_company_balance
Retrieve company balance details using the Norman Finance MCP Server to access and manage financial data for accounting and tax workflows.
Instructions
Get the current balance of the company.
Returns:
Company balance information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- norman_mcp/tools/company.py:26-46 (handler)The async handler function that implements the get_company_balance tool logic, fetching the balance via the Norman API after checking authentication.@mcp.tool() async def get_company_balance(ctx: Context) -> Dict[str, Any]: """ Get the current balance of the company. Returns: Company balance information """ api = ctx.request_context.lifespan_context["api"] company_id = api.company_id if not company_id: return {"error": "No company available. Please authenticate first."} balance_url = urljoin( config.api_base_url, f"api/v1/companies/{company_id}/balance/" ) return api._make_request("GET", balance_url)
- norman_mcp/server.py:333-333 (registration)Registration call that adds the company tools (including get_company_balance) to the MCP server instance.register_company_tools(server)
- norman_mcp/tools/company.py:11-13 (registration)Function that defines and registers the company tools using @mcp.tool() decorators.def register_company_tools(mcp): """Register all company-related tools with the MCP server."""