Skip to main content
Glama

Manawa Terminal

Get portfolio fund overlap

get_portfolio_fund_overlap
Read-only

When to use: the caller wants to know whether the funds in this portfolio hold the same names, so the book is less diversified than the fund count suggests.

Inputs: portfolio_id from list_portfolios. The caller's token is the owner scope. Do not pass a user id or a symbol list. The route looks through the funds on that portfolio.

What comes back: the route JSON, unchanged. pairs names two funds and overlap_weight, the share of the left fund that is also in the right fund, by weight. shared names a holding counted once, with its portfolio weight. A fund with no holdings file is named in missing and is not a zero overlap. A portfolio the token does not own is the same not-found answer as a missing id.

Args:
    portfolio_id: The portfolio UUID from list_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_id": "<portfolio_id>"
    },
    "name": "get_portfolio_fund_overlap"
  }
}

Input Schema

NameRequiredDescriptionDefault
strategy_idNoStrategy this call belongs to. UUID from list_strategies. The card this call writes keeps that id. Omit when the call is not part of a strategy.
portfolio_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/destructive annotations, the description discloses authorization scope (the caller's token is the owner scope) and the exact not-found behavior for a portfolio the token does not own. It also pre-empts a real misinterpretation by stating that a fund with no holdings file appears in 'missing' and is not zero overlap.

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?

Labeled sections (When to use / Inputs / What comes back / Args) front-load the decision-relevant information and the return-shape explanation is compact. The trailing 'Args:' block largely repeats the Inputs sentence about portfolio_id, which is minor redundancy but not harmful.

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?

For a read-only lookup with an output schema, the description still explains the meaningful return fields (pairs/overlap_weight as share of the left fund held in the right, shared holdings with portfolio weight) and the missing-file edge case. Nothing an agent needs to call it or interpret the result is absent.

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 50%: portfolio_id has no schema description, and the description compensates by defining it as the portfolio UUID obtained from list_portfolios and by forbidding user-id or symbol-list substitutes. The one documented parameter (strategy_id) is left to the schema, which is acceptable, though the description never mentions that optional parameter at all.

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 opening line names a specific resource (funds in this portfolio) and a specific question answered (do they hold the same names, making the book less diversified than the fund count suggests). That is far more precise than a restated title, but no sibling tool (e.g. get_portfolio_crowding) is named as the contrasting option, so an agent must infer the boundary.

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?

A dedicated 'When to use' clause states the caller intent that selects this route, and the Inputs section adds negative guidance ('Do not pass a user id or a symbol list'), which prevents a common mis-call. It stops short of naming an alternative route for the adjacent diversification questions.

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