Skip to main content
Glama
dun999

FinSight

analyze_correlation

Assess portfolio diversification by computing cross-asset correlation matrix and diversification ratio. Input holdings with weights; outputs full N×N correlations, average correlation, and DR>1 benefit indicator.

Instructions

Cross-asset correlation matrix and diversification ratio. Returns the full N×N correlation matrix, average pairwise correlation, diversification ratio (DR>1 = benefit), and asset-class pair correlations. Payment: $0.02 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

B3.3/5.0
Behavior2/5

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

No annotations provided, so description carries full burden. It describes outputs but discloses no behavioral traits such as read-only nature, rate limits, authentication needs, or error handling. Payment is mentioned but not behavioral.

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?

Two sentences efficient in stating purpose and outputs. Payment line is unconventional but informative. Could be slightly more structured, but it's concise and front-loaded.

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?

No output schema, so description explains return values (correlation matrix, avg pairwise correlation, diversification ratio, asset-class pair correlations). It covers core outputs and the payment caveat. Could clarify how data is fetched (schema covers this), but sufficient for basic understanding.

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 83%, with detailed parameter descriptions in the schema. The description adds no new parameter meaning beyond summarizing outputs. Baseline of 3 applies as schema does most of the work.

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?

Description clearly states it returns a correlation matrix and diversification ratio, specifying exact outputs (N×N matrix, avg pairwise correlation, DR>1 benefit, asset-class pair correlations). Distinguishes from sibling tools like analyze_diversification by focusing on correlation-specific metrics.

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

Usage Guidelines2/5

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

No explicit guidance on when to use vs. alternatives like analyze_factors or analyze_compare. Does not mention prerequisites or scenarios where this tool is preferred. The payment mention hints at cost but does not guide selection.

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