Skip to main content
Glama

Get a shared or model portfolio

get_portfolio
Read-onlyIdempotent

Use this when the user asks about one public Redstone portfolio, usually a search_portfolios result: its holdings with each one's own figures, its returns over YTD, 1 year and 5 years, max drawdown, volatility, Sharpe, beta and dividend yield, charted against SPY. Not for a portfolio the user describes (use backtest_portfolio) or private portfolios.

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": {
      "portfolio": "<portfolio>"
    },
    "name": "get_portfolio"
  }
}

Input Schema

NameRequiredDescriptionDefault
portfolioYesThe portfolio's Redstone url, as search_portfolios returns it

Output Schema

NameRequiredDescriptionDefault
urlYes
asOfYesMarket date (YYYY-MM-DD) of the latest close behind every number
holdingsYesThe largest holdings, up to 20, with their own figures
benchmarkYesSPY, for comparison
portfolioYesAs its page shows it: rebalanced back to its weights every quarter

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedOutput schema / properties / benchmark / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "alpha1yPct": {
      -        "description": "Annualized, versus SPY",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "beta1y": {
      -        "description": "Versus SPY, from daily returns over the past year",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "dividendYieldPct": {
      -        "description": "Trailing 12-month dividend yield: dividends that went ex in the past year over the latest close. 0 pays none; null when unknown (paid in another currency)",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "maxDrawdown1yPct": {
      -        "description": "Worst peak-to-trough fall over the past year (negative)",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "price": {
      -        "description": "Latest close in USD",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "return1dPct": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "return1yPct": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "return5yAnnualizedPct": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "returnYtdPct": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "sector": {
      -        "description": "GICS sector for stocks, category for ETFs",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "sharpe1y": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "sortino1y": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "statsSince": {
      -        "description": "YYYY-MM-DD, set only when there is less than a year of history: the 1Y figures (return, drawdown, volatility, Sharpe, Sortino, beta, alpha, yield) then run from this first close, and so does the YTD return if it falls this year. Screens on those metrics leave such securities out",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "ticker": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "stock",
      -          "etf"
      -        ],
      -        "type": "string"
      -      },
      -      "url": {
      -        "description": "Redstone page for this security",
      -        "type": "string"
      -      },
      -      "volatility1yPct": {
      -        "description": "Annualized standard deviation of daily returns over the past year",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "return1dPct",
      -      "returnYtdPct",
      -      "return1yPct",
      -      "return5yAnnualizedPct",
      -      "maxDrawdown1yPct",
      -      "sharpe1y",
      -      "sortino1y",
      -      "beta1y",
      -      "alpha1yPct",
      -      "volatility1yPct",
      -      "dividendYieldPct",
      -      "statsSince",
      -      "ticker",
      -      "name",
      -      "type",
      -      "sector",
      -      "price",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "alpha1yPct": {
      +        "description": "Annualized, versus SPY",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "beta1y": {
      +        "description": "Versus SPY, from daily returns over the past year",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "dividendYieldPct": {
      +        "description": "Trailing 12-month dividend yield: dividends that went ex in the past year over the latest close. 0 pays none; null when unknown (paid in another currency)",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "maxDrawdown1yPct": {
      +        "description": "Worst peak-to-trough fall over the past year (negative)",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "price": {
      +        "description": "Latest close in USD",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "return1dPct": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "return1yPct": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "return5yAnnualizedPct": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "returnYtdPct": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "sector": {
      +        "description": "GICS sector for stocks, category for ETFs and closed-end funds",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "sharpe1y": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "sortino1y": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "statsSince": {
      +        "description": "YYYY-MM-DD, set only when there is less than a year of history: the 1Y figures (return, drawdown, volatility, Sharpe, Sortino, beta, alpha, yield) then run from this first close, and so does the YTD return if it falls this year. Screens on those metrics leave such securities out",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "ticker": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "cef: a closed-end fund",
      +        "enum": [
      +          "stock",
      +          "etf",
      +          "cef"
      +        ],
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "Redstone page for this security",
      +        "type": "string"
      +      },
      +      "volatility1yPct": {
      +        "description": "Annualized standard deviation of daily returns over the past year",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "return1dPct",
      +      "returnYtdPct",
      +      "return1yPct",
      +      "return5yAnnualizedPct",
      +      "maxDrawdown1yPct",
      +      "sharpe1y",
      +      "sortino1y",
      +      "beta1y",
      +      "alpha1yPct",
      +      "volatility1yPct",
      +      "dividendYieldPct",
      +      "statsSince",
      +      "ticker",
      +      "name",
      +      "type",
      +      "sector",
      +      "price",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / holdings / items / properties / sector / description
      Previous value: -"GICS sector for stocks, category for ETFs"New value: +"GICS sector for stocks, category for ETFs and closed-end funds"
    • addedOutput schema / properties / holdings / items / properties / type / description
      Added value: +"cef: a closed-end fund"
    • changedOutput schema / properties / holdings / items / properties / type / enum
      Previous value: -[
      -  "stock",
      -  "etf"
      -]New value: +[
      +  "stock",
      +  "etf",
      +  "cef"
      +]
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds behavior beyond that: it only serves public portfolios (a real access limitation) and it enumerates the analytics returned, including benchmarking against SPY. It stops short of noting error behavior for invalid or private URLs.

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

Conciseness5/5

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

Two sentences, front-loaded with the usage condition before the exclusion clause. The metric enumeration is dense but earns its place by letting the agent match a user's question (e.g. Sharpe or max drawdown) to this tool during selection.

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

Completeness5/5

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

An output schema exists, so return shape needn't be spelled out, and the description still summarizes the payload well enough for selection. For a one-parameter read-only tool with full annotation coverage, nothing an agent needs to call it correctly is missing.

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 coverage is 100% and the single parameter is already documented as the Redstone url in the schema. The description adds only provenance — that the value usually comes from a search_portfolios result — which is mildly useful but not beyond what the schema and title already imply.

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

Purpose5/5

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

States a specific verb and resource (retrieve one public Redstone portfolio) and immediately scopes it to a search_portfolios result. It explicitly separates this from backtest_portfolio and from private portfolios, so the agent can discriminate it from siblings without inspecting schemas.

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

Usage Guidelines5/5

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

Gives an explicit trigger (user asks about one public portfolio, typically one returned by search_portfolios) and explicit non-triggers with the alternative named (user-described portfolio → backtest_portfolio; private portfolios → out of scope). Nothing is left to inference.

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