Skip to main content
Glama

Manawa Terminal

Get portfolio crowding

get_portfolio_crowding
Read-only

When to use: the caller wants to know which holdings are crowded, meaning a speculative net position that is extreme versus the last three years and is already moving against that crowd.

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 reads that portfolio's holdings.

What comes back: the route JSON, unchanged. window is 3Y. percentile is 0 to 100, and 100 is the most net long of that window. A crowded long is percentile at or above 90 with price down over four weeks. A crowded short is percentile at or below 10 with price up over four weeks. reading is crowded_long, crowded_short, or neutral. A holding the route cannot score is named in missing and is not a neutral reading. 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_crowding"
  }
}

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.4/5.0
Behavior5/5

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

Annotations already declare a read-only, closed-world, non-destructive operation, and the description adds substantial non-obvious behavior on top: token-derived ownership scoping, a 3Y fixed window, the percentile direction convention, the exact 90/10 plus four-week price thresholds, and the fact that unscoreable holdings land in 'missing' rather than being reported neutral. It also discloses the authorization failure mode (a portfolio the token does not own returns the same not-found as a missing id), which is exactly the kind of context annotations cannot carry.

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?

Well structured and front-loaded with labeled sections (When to use, Inputs, What comes back, Args), and the thresholds are load-bearing rather than filler. The 'What comes back' section is somewhat long for a tool that already has an output schema, which is the only real redundancy.

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 two-parameter read with an output schema, this covers everything an agent needs: the selection trigger, the scope of portfolio_id, the fixed analysis window, how to interpret percentile and reading values, and how missing and unauthorized portfolios are reported. Nothing material is left to guesswork.

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 50%: portfolio_id has no schema description and strategy_id does, and the description compensates by explaining portfolio_id comes from list_portfolios. However it says nothing about strategy_id, so the agent gets no guidance on whether including it changes this read call's scoping or just tags a card – that half of the schema gap is filled by the schema itself, leaving the description roughly at baseline.

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?

It states a specific verb and resource ('which holdings are crowded') and immediately defines the concept operationally: a net position extreme versus the last three years that is already moving against the crowd. That definition alone separates it from sibling portfolio analytics tools like get_portfolio_statistics or get_positions.

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 opens with an explicit 'When to use' trigger and states negative constraints ('Do not pass a user id or a symbol list', token is the owner scope), which is stronger than most definitions. What it lacks is routing to siblings – it never says to use get_positions or get_portfolio_statistics for the non-crowding case, so the agent must infer when this is the wrong portfolio tool.

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