Get Portfolio
get_portfolioGet account-level balances, equity, buying power, positions, and Web3 wallet holdings across connected brokers and wallets. Read each account's pnl_summary for equity, balance, unrealized_pnl and daily_pnl: a null value means the broker did not report it (say 'unknown', never assume 0 or break-even); partial_errors says which call failed. Accounts in equity_unavailable_for are excluded from the totals. Use get_positions when you only need normalized open exposure. Label each account by its display_label (broker · environment · •••••last5 of the broker's own account number); never call an account by broker_account_id, which is Gogi-internal. Each position has attribution: 'this_agent' or 'outside_this_agent'. Read policy_context before judging risk: the agent's policy (incl. max_daily_loss, measured on the agent's own realized P&L) does not apply to positions the user opened outside this agent — never call those a policy breach.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_portfolio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| message | No | ||
| success | No | ||
| wallets | No | ||
| broker_accounts | No |