Skip to main content
Glama

get_portfolio

Read-only

Get portfolio data. Use view='overview' for holdings + position summary, or view='asset_detail' with a currencyId to see per-account breakdown for a specific asset. New to this session? Call the read_me_first tool for wider context on terminology and tool-usage patterns.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "get_portfolio"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNoPortfolio view type. Defaults to overview.
limitNoOverview pagination size (1-200). Defaults to 50.
offsetNoOverview pagination offset (0-based). Defaults to 0.
contextYesWrite one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details".
clientIdNoThe client this call acts for — its ID comes from list_clients. Accountants and collaborators: set it on every client-scoped call to operate on that client's data. Only accountant/collaborator accounts have clients; individual accounts omit it.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
currencyIdNoCurrency ID for asset_detail view (from get_portfolio overview)
includeUnresolvedNoInclude unresolved token/NFT/address-like assets in overview. Defaults to false.
includeZeroBalanceNoInclude zero-balance assets in overview. Defaults to false.
includeChangePercentNoInclude 24h price change percentages (overview only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds no further behavioral context — nothing about pagination behavior, result size, what happens if asset_detail is requested without a currencyId, or whether computed values may be stale pending a summ computation. With annotations carrying the safety story, this is adequate but thin.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences front-load the mode-selection rule, which is the decision an agent actually has to make. The trailing pointer to read_me_first is onboarding boilerplate rather than tool-selection content, but it is one short sentence and does not obscure the core instruction.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter read tool with a 100%-documented schema and no output schema, the description covers the main branching decision (which view, and the currencyId dependency). Remaining gaps are minor: no mention of default page size effects on overview results or of how asset_detail behaves when required pairing is missing, both of which would help an agent avoid a failed call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description genuinely earns above that: it explains what each view value actually returns (holdings + position summary vs. per-account breakdown) and that asset_detail requires a currencyId, which the schema's bare enum label does not convey. It does not touch the pagination or inclusion flags, but those are already well documented in-schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Get portfolio data") and immediately splits it into two named modes, 'overview' (holdings + position summary) and 'asset_detail' (per-account breakdown for one asset). The two modes are clearly differentiated, but the description never contrasts itself with siblings that also surface asset/balance data, so an agent must infer whether get_portfolio is the right entry point versus summ_get_account_balances or get_accounts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit mode-selection rules: use view='overview' for holdings plus summary, use view='asset_detail' together with a currencyId for a per-asset breakdown. It also routes new sessions to read_me_first for terminology context. No exclusion guidance is offered against other portfolio/balance tools, so it stops short of a full when/when-not treatment.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources