get_company_details
Retrieve comprehensive company details to streamline financial workflows. Integrates with Norman Finance to enhance accounting, tax, and invoicing processes for German entrepreneurs.
Instructions
Get detailed information about the user's company.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- norman_mcp/tools/company.py:14-24 (handler)The async handler function that implements the get_company_details tool logic. It retrieves company details from the API using the company_id from the context.@mcp.tool() async def get_company_details(ctx: Context) -> Dict[str, Any]: """Get detailed information about the user's company.""" api = ctx.request_context.lifespan_context["api"] company_id = api.company_id if not company_id: return {"error": "No company available. Please authenticate first."} company_url = urljoin(config.api_base_url, f"api/v1/companies/{company_id}/") return api._make_request("GET", company_url)
- norman_mcp/server.py:333-333 (registration)The call to register_company_tools which defines and registers the get_company_details tool (along with other company tools) to the MCP server.register_company_tools(server)