Skip to main content
Glama
dun999

FinSight

analyze_diversification

Analyzes portfolio diversification using Herfindahl-Hirschman Index (HHI). Provides concentration grade, effective number of assets, and breakdown by asset class, region, and sector to identify concentration risks.

Instructions

Portfolio diversification analysis using Herfindahl-Hirschman Index (HHI). Returns concentration grade (excellent/good/moderate/poor/critical), effective number of assets, breakdown by asset class / region / sector, and concentration warnings. Payment: $0.01 USDC on Tempo chain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
holdingsYes
profileNoRisk profile — affects rebalance targets and scoring. Default: balanced.
benchmarkReturnNoAnnual benchmark return for Sharpe calculation, e.g. 0.08 = 8%. Default: 0.08.
riskFreeRateNoAnnual risk-free rate for Sortino and VaR excess return, e.g. 0.05 = 5%. Default: 0.05.
rebalanceMethodNoPortfolio construction method for rebalance recommendations. Default: profile.
marketIndicatorsNoOptional macro indicators — improves market regime detection confidence to HIGH when 3+ provided.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.1
    • changedInput schema / properties / holdings / items / properties / asset / description
      Previous value: -"Ticker symbol, e.g. BTC, AAPL, GLD"New value: +"Asset name or ticker. For known crypto tickers (BTC, ETH, SOL, AVAX, ARB, OP, MATIC, LINK, UNI, NEAR, APT, SUI, USDC, etc.) and equity ETFs (SPY, QQQ, GLD, TLT, BND), the server auto-fetches live price data from CoinGecko and computes avgReturn/volatility/maxDrawdown for you — no need to provide them manually."
    • changedInput schema / properties / holdings / items / properties / assetClass / description
      Previous value: -"Asset class for multi-asset institutional analysis. Default: crypto."New value: +"Asset class for multi-asset portfolio analysis. Default: crypto."
    • changedInput schema / properties / holdings / items / properties / avgReturn / description
      Previous value: -"Expected annual return as decimal (0.12 = 12%). Default: 0."New value: +"Annual return as decimal. OPTIONAL for known tickers — auto-populated from live CoinGecko data."
    • changedInput schema / properties / holdings / items / properties / maxDrawdown / description
      Previous value: -"Max peak-to-trough decline as decimal. Default: 0.3."New value: +"Max peak-to-trough decline. OPTIONAL for known tickers — auto-populated from 1-year price history."
    • changedInput schema / properties / holdings / items / properties / volatility / description
      Previous value: -"Annual volatility as decimal (0.20 = 20%). Default: 0.3."New value: +"Annual volatility as decimal. OPTIONAL for known tickers — auto-populated from 30-day realized vol."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description bears the full burden. It discloses the key behavioral aspects: returns specific outputs, auto-fetches data for known tickers, and requires a payment. No contradictory or missing critical disclosures.

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?

Three sentences, no wasted words. Key information (HHI analysis, outputs) is front-loaded, followed by payment detail. Efficient and well-structured.

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

Completeness4/5

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

Given the complexity (6 parameters, nested objects, no output schema), the description covers the main outputs and payment. It lacks details on interpreting results (e.g., grade meanings) but is adequate for a well-named tool with high schema coverage.

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 description coverage is high (83%), so baseline is 3. The description adds value with the payment note and auto-fetch hint but does not elaborate on each parameter beyond what the schema provides.

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?

The description clearly states it performs portfolio diversification analysis using HHI, listing specific outputs like concentration grade, effective number of assets, and breakdowns. It distinguishes itself from sibling tools (e.g., analyze_risk, analyze_correlation) by focusing on diversification.

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?

The description implies usage for diversification analysis but does not explicitly state when to use it versus alternatives or provide exclusions. The sibling tools cover other aspects, but no direct guidance is given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.