get_net_worth
Calculate net worth (assets minus liabilities) with 12-month trend. Shows point-in-time snapshot from last sync; optionally retrieve full history.
Instructions
Current net worth (assets minus liabilities) plus a 12-month trend. Numbers are point-in-time from the last sync, not live-computed. Use list_stale_accounts to verify freshness.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| history | No | If true, return the full snapshot history instead of just latest. |
Implementation Reference
- tuskledger_mcp/server.py:172-186 (registration)Tool registration in the TOOLS list with name='get_net_worth', description, and inputSchema supporting an optional 'history' boolean parameter.
Tool( name="get_net_worth", description=( "Current net worth (assets minus liabilities) plus a 12-month " "trend. Numbers are point-in-time from the last sync, not " "live-computed. Use list_stale_accounts to verify freshness." ), inputSchema={ "type": "object", "properties": { "history": {"type": "boolean", "description": "If true, return the full snapshot history instead of just latest."}, }, "additionalProperties": False, }, ), - tuskledger_mcp/server.py:296-297 (handler)Dispatch handler for 'get_net_worth' — calls client.net_worth_history() if the 'history' argument is truthy, otherwise calls client.net_worth_latest().
if name == "get_net_worth": return client.net_worth_history() if a.get("history") else client.net_worth_latest() - tuskledger_mcp/client.py:151-156 (helper)Client helper methods: net_worth_latest() GETs /api/net-worth/latest and net_worth_history() GETs /api/net-worth/.
# net worth def net_worth_latest(self) -> dict | None: return self._request("GET", "/api/net-worth/latest") def net_worth_history(self) -> list[dict]: return self._request("GET", "/api/net-worth/") - tuskledger_mcp/server.py:179-185 (schema)Input schema for get_net_worth: type 'object' with an optional 'history' boolean property and additionalProperties set to False.
inputSchema={ "type": "object", "properties": { "history": {"type": "boolean", "description": "If true, return the full snapshot history instead of just latest."}, }, "additionalProperties": False, },