Skip to main content
Glama

Agent Financial Advisor

Portfolio review

portfolio_review

A periodic advisor review of a portfolio: weights, concentration (HHI and effective number of holdings), sector and asset-class exposure, drift from targets with the trades to rebalance, and, given return history, volatility, Sharpe, Sortino, drawdown, VaR/CVaR and beta. Ends with prioritized findings. Price: $0.05.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cash": 10000,
      "targets": {
        "cash": 0.05,
        "bonds": 0.35,
        "equity": 0.6
      },
      "holdings": [
        {
          "value": 60000,
          "sector": "Tech",
          "symbol": "NVDA",
          "asset_class": "equity"
        },
        {
          "value": 30000,
          "symbol": "AGG",
          "asset_class": "bonds"
        }
      ]
    },
    "name": "portfolio_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
cashNo
limitsNo
api_keyNoOptional. Your AFA API key (afa_...), from get_api_key. Pass it on every call so free calls and credits apply; without it calls use the anonymous trial.
returnsNoPeriodic portfolio returns as decimals.
targetsNoTarget weights by symbol or asset_class, summing to 1.
holdingsYes
rebalance_bandNoAbsolute drift that triggers a rebalance, default 0.05.
risk_free_rateNo
periods_per_yearNo
benchmark_returnsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "Optional. Your AFA API key (afa_...), from get_api_key. Pass it on every call so free calls and credits apply; without it calls use the anonymous trial.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "cash": 10000,
      +    "holdings": [
      +      {
      +        "asset_class": "equity",
      +        "sector": "Tech",
      +        "symbol": "NVDA",
      +        "value": 60000
      +      },
      +      {
      +        "asset_class": "bonds",
      +        "symbol": "AGG",
      +        "value": 30000
      +      }
      +    ],
      +    "targets": {
      +      "bonds": 0.35,
      +      "cash": 0.05,
      +      "equity": 0.6
      +    }
      +  }
      +]
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden: it usefully discloses that risk metrics (volatility, Sharpe, Sortino, drawdown, VaR/CVaR, beta) only appear when return history is supplied, that output ends with prioritized findings, and that each call costs $0.05. It omits error behavior, what happens when targets are absent, and any auth/rate-limit context beyond the api_key parameter.

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?

The purpose and the enumerated analytics are front-loaded in a single dense sentence, with the price appended at the end. Every clause names a distinct computation, so little is wasted, though the run-on list is harder to scan than a short structured breakdown.

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

Completeness3/5

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

For a 10-parameter tool with nested objects, no annotations, and no output schema, this covers the headline outputs and conditional metric behavior well. However, the limits sub-object, cash, and the shape of the returned findings are left for the agent to infer, which is a meaningful gap for a tool this complex.

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 40%, so the description must compensate and it partially does: 'given return history' maps to the returns array, 'drift from targets' to targets, and beta implies benchmark_returns, while rebalance_band is echoed by 'trades to rebalance'. It never mentions the limits object (max_drawdown, max_sector_weight, max_single_weight) or the cash parameter, leaving key inputs unexplained in both schema and text.

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 verb and resource ('a periodic advisor review of a portfolio') and enumerates the concrete outputs: concentration/HHI, sector and asset-class exposure, drift with rebalancing trades, and risk metrics. An agent can tell this is an analytics/report tool rather than a trade validator. It does not explicitly contrast itself with siblings like strategy_audit or suitability_check, which keeps it from a 5.

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

Usage Guidelines3/5

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

'Periodic advisor review' implies the recurring-check use case, and 'given return history' signals a conditional path, but there is no explicit when-to-use/when-not guidance or named alternative. Nothing tells the agent whether to run this before pre_trade_check or instead of suitability_check.

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.