list_stale_accounts
Identify accounts with outdated balances to diagnose incorrect net worth calculations. Stale data is flagged based on account type and freshness thresholds.
Instructions
Return accounts whose data is older than the freshness threshold (a week for synced accounts, a month for manual). Useful when the user asks 'why is my net worth wrong?' — stale balances are usually the cause.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tuskledger_mcp/server.py:58-67 (registration)Tool registration definition for 'list_stale_accounts' in the TOOLS list with input schema and description.
Tool( name="list_stale_accounts", description=( "Return accounts whose data is older than the freshness " "threshold (a week for synced accounts, a month for manual). " "Useful when the user asks 'why is my net worth wrong?' — " "stale balances are usually the cause." ), inputSchema={"type": "object", "properties": {}, "additionalProperties": False}, ), - tuskledger_mcp/server.py:273-274 (handler)Dispatch handler that routes the 'list_stale_accounts' tool name to client.list_stale_accounts().
if name == "list_stale_accounts": return client.list_stale_accounts() - tuskledger_mcp/client.py:109-110 (helper)Client helper method that makes the HTTP GET request to /api/accounts/stale on the backend.
def list_stale_accounts(self) -> dict: return self._request("GET", "/api/accounts/stale")