Skip to main content
Glama

finance_correlation

Read-only

Correlation matrix + diversification: Pearson/Spearman of returns, CIs, portfolio risk — Offline correlation analysis for 2-20 assets. series= (required) NAME:v1,v2,...;NAME2:... oldest first (series of unequal length are aligned on their most recent values). type=prices (default, converted to period returns) or returns; method=pearson (default) or spearman; weights=NAME:pct,... or pct,pct (default equal); period=daily|weekly|monthly|crypto to annualize volatility. Returns the correlation matrix, every pair with 95% Fisher-z CI, significance and strength label, most/least correlated pair, average correlation, portfolio volatility, diversification ratio with verdict WELL_DIVERSIFIED/SOME_DIVERSIFICATION/CONCENTRATED_RISK, and each asset's volatility and risk contribution %. Price: $0.003 USDC (Base, via x402).

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": {
      "series": "<series>"
    },
    "name": "finance_correlation"
  }
}

Input Schema

NameRequiredDescriptionDefault
seriesYesSPY:100,101,103,102,105,107,106,109;QQQ:50,50.4,51.5,51.2,52.4,53.6,53,54.3;TLT:20,19.8,19.5,19.9,19.2,19,19.4,18.8

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover read-only and non-destructive, so the description's job is additive context — and it delivers: alignment of unequal-length series on most recent values, default behavior (prices converted to period returns, equal weights), annualization semantics, and an x402 payment requirement ($0.003 USDC on Base). It does not disclose rate limits or failure behavior, so it stops short of a 5.

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?

It is front-loaded (purpose, then input format, then return payload, then price) and nearly every clause carries information rather than filler. The dense semicolon-fragment style is hard to scan, and the phantom parameter list consumes space for options the tool does not expose.

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?

With no output schema, the description rightly enumerates the return payload in detail — matrix, pairwise CIs, strengths, extremes, average, volatility, diversification verdict, risk contributions — and even discloses cost. The completeness is undercut by the parameter mismatch: it advertises configurability (type/method/weights/period) that the schema does not support, leaving an agent uncertain what can actually be passed.

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?

The 'series=' explanation is genuinely useful: NAME:v1,v2,... syntax, oldest-first ordering, and the unequal-length alignment rule all go beyond the schema's single example string. However, the description documents controls named type, method, weights, and period that do not exist in the input schema, which can lead an agent to send arguments that will be rejected.

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 opening states a specific computation: correlation matrix and diversification, with named methods (Pearson/Spearman of returns), confidence intervals, and portfolio risk. It clearly reads as a correlation-analysis tool, but it offers no explicit differentiation from any sibling calculator beyond the topic noun 'correlation'.

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?

Usage guidance is implied rather than stated: 'Offline correlation analysis for 2-20 assets' establishes the applicable domain and an asset-count constraint. There is no when-not guidance, no named alternative, and no statement of prerequisites such as minimum observations needed for the Fisher-z CIs.

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