Skip to main content
Glama

My portfolio

get_portfolio
Read-onlyIdempotent

The signed-in user's InvestIQ holdings (positions, current price, unrealized P&L). Defaults to their PRIMARY active portfolio; archived/deleted portfolios are never included. Pass portfolio (a name, or 'all') only if the user asks for others. Requires the user to be connected.

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

NameRequiredDescriptionDefault
portfolioNoOptional: a portfolio name, or 'all' for every active portfolio. Defaults to the user's primary — only widen when the user explicitly asks.

Output Schema

NameRequiredDescriptionDefault
okYesfalse on an error; then `error` says what happened and what to do.
cardNoThe in-chat InvestIQ card, in English and French.
dataNoThe tool's own result fields.
toolYes
as_ofYesISO time the data was computed (a stored analysis: when it was computed).
errorNo
linksNoInvestIQ pages for this result.
degradedNotrue when part of the data was missing.
viz_specNoThe recommended chart's series (data only).
disclaimerYes
data_qualityNoWhat was requested, what was used, and why anything was left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavioral facts: archived/deleted portfolios are excluded from results, the default is the primary portfolio, and an authenticated/connected user is required. Return-shape details are legitimately omitted because an output schema exists.

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 short sentences, front-loaded with what is returned and followed by scoping and auth constraints. The portfolio-scoping sentence overlaps the schema's own parameter text, which is slightly redundant, but nothing is padded or unclear.

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 single-optional-parameter read tool with full schema coverage, an output schema and rich annotations, the definition supplies everything an agent needs: scope, default behavior, exclusions, and the connection prerequisite. Additional detail about result structure or pagination would be redundant given the output schema.

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?

There is one optional parameter at 100% schema description coverage, so the schema already explains that it takes a portfolio name or 'all' and defaults to the primary. The description largely restates that, adding only the caution to widen scope solely on explicit user request, which is a modest increment over the structured field.

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?

The description names a specific resource (the signed-in user's InvestIQ holdings) and enumerates what comes back (positions, current price, unrealized P&L), plus a negative scope statement that archived/deleted portfolios are never included. It is clear on its own, though it never contrasts itself against adjacent reads like portfolio_performance or portfolio_risk, so differentiation rests on the agent's knowledge of those siblings.

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?

It gives explicit conditional guidance: default to the primary active portfolio, and pass the portfolio argument only when the user asks for others, with 'all' reserved for every active portfolio. The prerequisite 'Requires the user to be connected' is also stated. It stops short of naming an alternative tool for the cases where a different endpoint is the right call.

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