Skip to main content
Glama

Manawa Terminal

Get portfolio signal alerts

get_portfolio_signal_alerts
Read-only

When to use: the caller wants the market signals that fired on this portfolio, or whether the index the book hedges against crossed the point where dealer hedging switches from calming to amplifying.

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. alerts is one row per holding signal, with symbol, book, side, kind, reason, and fired_at. index_alerts is the gamma-flip row for the index the route watches, and the route names that symbol. An empty list means no alert. A holding the route could not score is named in missing and is not a quiet signal. 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_signal_alerts"
  }
}

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

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

Annotations already declare readOnlyHint/not-destructive/closed-world, and the description goes beyond them with real behavioral context: the token itself is the ownership scope, unauthorized portfolios collapse to the same not-found answer as a missing id, and unscoreable holdings appear in missing rather than being silently dropped. That last distinction is exactly the kind of trap an agent would otherwise misread.

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?

Front-loaded with labeled sections (when to use, inputs, what comes back, args) so the most decisive information comes first. The return-value section is fairly long for a tool that has an output schema, though its explanation of empty vs. missing vs. not-found is semantic rather than structural filler.

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?

Covers the full surface an agent needs for a read tool: intent, ownership model, the two input constraints, per-field meaning of the response, and the three edge outcomes (empty list, missing holdings, unowned portfolio). Nothing material is left to inference despite the partial schema coverage.

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% and portfolio_id has no schema description, so the description carries its meaning: it comes from list_portfolios and the token defines the owner scope. The Args block repeats the same point without adding syntax detail, and strategy_id (which does carry a schema description) is not discussed.

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 (market signals that fired on this portfolio) and adds the second capability (whether the hedged index crossed the gamma-flip point), which separates it cleanly from the generic list_alerts sibling. An agent can recognize the intent without opening the schema.

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?

Leads with an explicit "When to use" clause naming both triggering conditions (fired signals, or gamma-flip crossing for the hedge index), and adds negative constraints ("Do not pass a user id or a symbol list"). It does not name an alternative tool for the generic-alerts case, so it stops short of full routing guidance.

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