Skip to main content
Glama

correlation_matrix

Read-only

Compute pairwise Pearson correlations between assets to analyze portfolio diversification. Lower correlations indicate better diversification, while correlations near 1 show assets moving together.

Instructions

Compute correlation matrix between multiple assets.

Returns pairwise Pearson correlations. Useful for portfolio diversification analysis — lower correlations = better diversification. Correlations near 1 = assets move together (less diversification benefit).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolsYesComma-separated tickers (e.g., 'AAPL,MSFT,GOOGL,SPY')
periodNoPeriod: 3mo, 6mo, 1y, 2y6mo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Annotations already declare readOnlyHint=true, so the agent knows this is a safe read operation. The description adds useful context about what the tool returns ('pairwise Pearson correlations') and the financial interpretation of results, but does not disclose behavioral traits like rate limits, data freshness, or error conditions beyond what annotations provide.

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?

The description is efficiently structured with three sentences: the core function, the return type, and the practical application with interpretation guidelines. Every sentence adds value without redundancy, making it easy to parse and understand quickly.

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 tool's moderate complexity, the presence of annotations (readOnlyHint) and an output schema, the description provides sufficient context about purpose and usage. However, it could benefit from mentioning data sources or limitations, though the output schema reduces the need to explain return values in detail.

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?

With 100% schema description coverage, the input schema already fully documents both parameters. The description does not add any parameter-specific information beyond what's in the schema, so it meets the baseline expectation without providing additional semantic context about the parameters.

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 the specific action ('Compute correlation matrix') and resource ('between multiple assets'), distinguishing it from siblings like 'compare_assets' or 'portfolio_analysis' by focusing on pairwise statistical relationships rather than general comparison or holistic portfolio evaluation.

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

Usage Guidelines4/5

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

The description provides clear context for when to use this tool ('Useful for portfolio diversification analysis') and explains the interpretation of results ('lower correlations = better diversification'), but does not explicitly state when not to use it or name specific alternatives among the sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vdalhambra/financekit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server