Skip to main content
Glama

get_correlation

Read-only

Calculate price correlation and return statistics between two assets to assess portfolio diversification and dependency. Compare stocks, indices, crypto, or currencies over a chosen period.

Instructions

İki varlığın (hisse, endeks, kripto veya para birimi) fiyat korelasyonunu ve getiri istatistiklerini hesaplar. Portföy çeşitlendirme / bağımlılık analizi için kullanılır. Örn: (THYAO.IS, BIST100) veya (BTC-USD, XU100.IS).

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": {
      "symbolA": "<symbolA>",
      "symbolB": "<symbolB>"
    },
    "name": "get_correlation"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoKorelasyonun hesaplanacağı tarih aralığı1y
symbolAYesBirinci varlık sembolü. BIST için '.IS' eklenir (THYAO.IS, XU100.IS).
symbolBYesİkinci varlık sembolü. BIST için '.IS' eklenir (ASELS.IS, XU100.IS, BTC-USD).
intervalNoGetiri periyodu: günlük, haftalık veya aylık1d

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

A3.7/5.0
Behavior3/5

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

The readOnlyHint=true and openWorldHint=true annotations already establish that this is a safe read with external data. The description adds that it spans multiple markets (BIST, crypto, FX) and requires the '.IS' suffix for BIST symbols, which is genuinely useful operational context. It says nothing about network dependency, symbol resolution failures, or what 'getiri istatistikleri' actually contains — reasonable with annotations present, but not rich.

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 short sentences, front-loaded with the action and then the use case, then a compact example. Every sentence carries information and no words are wasted.

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?

For a read-only computation tool with a fully documented four-parameter schema and no output schema, the description is nearly complete. The one real gap is that it labels its return as 'getiri istatistikleri' without any hint of what metrics that covers, which slightly matters given the missing output schema. Overall the definition is sufficient to call correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description earns the extra point because its example pairs like '(THYAO.IS, BIST100)' and '(BTC-USD, XU100.IS)' demonstrate that cross-asset comparisons (crypto vs. index) are legitimate and how symbols are formatted. This is beyond what a per-parameter schema conveys. It still says nothing about how 'period' and 'interval' interact with the correlation computation.

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 description uses the specific verb 'hesaplar' (calculates) and names the exact resource: price correlation plus return statistics between two assets. It even enumerates asset classes (hisse, endeks, kripto, para birimi) and gives concrete pair examples, so no sibling could be mistaken for it. It stops short of 5 only because it never contrasts itself with price-fetching siblings like get_bist_price or get_crypto_price.

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 states the analytical context ('Portföy çeşitlendirme / bağımlılık analizi için kullanılır'), which implies when to reach for it: dependency analysis between two instruments. However, it gives no when-not conditions, no prerequisites, and does not name an alternative. This is implied usage rather than explicit routing guidance.

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