Skip to main content
Glama

correlation_matrix

Assess diversification and risk by computing pairwise correlation matrix from historical returns for up to 20 symbols.

Instructions

Compute pairwise correlation matrix for a set of symbols based on historical returns.

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": {
      "symbols": "<symbols>"
    },
    "name": "correlation_matrix"
  }
}

Input Schema

NameRequiredDescriptionDefault
barSizeNoBar size for returns (default: "1 day")
symbolsYesList of symbols (max 20)
lookbackDaysNoHistorical lookback in days (default: 252)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the entire behavioral burden. It only hints that results derive from historical returns; it says nothing about whether missing symbols error out, whether results are cached, how the computation is bounded (the 20-symbol cap lives only in the schema), or what the response looks like. For an unannotated analytical tool with no output schema, this is a substantial gap.

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?

A single front-loaded sentence with no filler or redundant restatement of the tool name. It is appropriately sized for a three-parameter computation tool, though the brevity borders on under-specification rather than disciplined conciseness.

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

Completeness2/5

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

With no annotations and no output schema, the description should explain the return shape (e.g., an N×N matrix of correlation coefficients) so the agent knows how to consume the result. It also omits behavioral details like error handling for invalid or over-limit symbols. Given the tool's modest complexity, this leaves the definition noticeably incomplete.

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 100%, with defaults documented for barSize and lookbackDays and the max-20 constraint on symbols, so the schema does the heavy lifting. The description adds only the general framing that parameters feed a returns-based correlation, which is a marginal contribution beyond the structured fields. Baseline 3 is appropriate.

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?

States a specific verb and resource: 'Compute pairwise correlation matrix for a set of symbols.' An agent can immediately tell this is an analytics/computation tool rather than a data-fetch or exposure tool, distinguishing it from siblings like beta_exposure or historical_data, though it never explicitly names those alternatives.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as beta_exposure or exposure_by_symbol for related risk analysis. The agent must infer context purely from the tool name and the phrase 'based on historical returns.'

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

Deploy Server

Other Tools