Skip to main content
Glama

get_portfolio_holdings

Positions held in a portfolio with dynamically calculated market value, cost basis, and realized/unrealized gain (value and percent). Each holding includes the embedded security (symbol, name, asset class, currency). Filter by securityId to look at a single position.

Input Schema

NameRequiredDescriptionDefault
dateNoDate for historical valuation (ISO 8601). Default: latest available prices
securityIdNoFilter to a specific security
portfolioIdYesPortfolio ID (from get_portfolios)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does usefully disclose that values are 'dynamically calculated' and that each holding embeds a security object, which sets expectations for the response shape. However, it says nothing about authorization requirements, pagination behavior for large portfolios, or how the historical date interacts with the required portfolioId, leaving real gaps for a read tool with zero annotation coverage.

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?

Three tight sentences with the core purpose and returned fields front-loaded, followed by supporting detail and the filter hint. Every sentence contributes; no filler or restatement of the tool name.

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?

With no output schema, the description does the work of describing return values, covering computed fields, the embedded security, and the securityId filter. For a straightforward read tool this is nearly complete, though a note on result size or pagination would close the remaining gap.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters are already documented (date defaults to latest prices, securityId filters, portfolioId sourced from get_portfolios). The description reinforces the securityId filter with the phrase 'look at a single position' but adds little syntax or semantics beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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+resource (portfolio holdings) and enumerates the computed fields returned (market value, cost basis, realized/unrealized gain) plus the embedded security object. This is far more informative than a generic list tool. It doesn't, however, explicitly distinguish itself from siblings like get_portfolio_summary or get_portfolio_balances, so it stops short of a 5.

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

Usage Guidelines2/5

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

The only usage hint is 'Filter by securityId to look at a single position,' which is parameter usage rather than when-to-use guidance. There is no statement about when to prefer this over get_portfolio_summary, get_portfolio_balances, or get_portfolios, which are the obvious alternatives in the sibling set.

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.