Skip to main content
Glama

Strateji testi

strateji_testi
Read-only

Backtests a trading strategy on a single stock using realistic rules: signals at close, entry at next open, 0.2% commission, and Sharpe ratio net of the Turkish risk-free rate.

Instructions

Bir hissede strateji backtest'i (yalnız uzun pozisyon, sinyal kapanışta, işlem ertesi açılışta, %0,2 komisyon, Sharpe TL risksiz faiz düşülerek). Stratejiler: sma_cross = Hareketli Ortalama Kesişimi [fast=20, slow=50]; rsi_reversion = RSI Ortalamaya Dönüş [period=14, lower=30, upper=70]; macd = MACD Kesişimi [fast=12, slow=26, signal=9]; bollinger = Bollinger Bandı Dönüşü [period=20, k=2]; supertrend = Supertrend [period=10, mult=3]; donchian = Donchian Kırılımı (Kaplumbağa) [entry=20, exit=10]; composite = Bileşik Teknik Skor [buy=25, sell=-10].

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": {
      "sembol": "<sembol>",
      "strateji": "<strateji>"
    },
    "name": "strateji_testi"
  }
}

Input Schema

NameRequiredDescriptionDefault
donemNoVarsayılan 5y
kar_alNoOran: 0.2 = %20
sembolYesBIST kodu (THYAO) ya da Yahoo sembolü (XU100.IS, USDTRY=X, GC=F)
stratejiYes
parametrelerNo
zarar_durdurNoOran: 0.08 = %8

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds genuinely load-bearing behavior: long positions only, signals evaluated at close, fills at the next open, 0.2% commission, and Sharpe computed against a TL risk-free rate. These assumptions materially change how results should be interpreted. It does not describe the response payload or runtime cost, but with no output schema and annotation coverage already present, this is a strong contribution.

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?

Front-loaded with the core action and simulation assumptions, then a compact one-line-per-strategy reference block; no filler sentences. The strategy list is long but each entry carries distinct parameter information, so it earns its space. The only redundancy is echoing the tool title at the start.

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?

For a six-parameter tool with a nested free-form object and no output schema, the definition covers inputs and methodology well. It leaves open what the backtest returns (equity curve, return/Sharpe/max-drawdown metrics) and how 'zarar_durdur' and 'kar_al' interact with the strategy signals, which an agent would want before calling. Adequate but with a clear descriptive gap at the output end.

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 coverage is 67%, and the description compensates for the biggest gap: the free-form 'parametreler' object is documented by listing the exact tunable keys and defaults per strategy (fast/slow, period/lower/upper, entry/exit, etc.). 'donem', 'kar_al' and 'zarar_durdur' are already fully documented in the schema, so the description correctly does not repeat them. The one remaining gap is that it does not say how 'parametreler' overrides the listed defaults.

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 opens with a specific verb+resource: a strategy backtest on a single stock, and it enumerates the seven supported strategies with their default parameters. That is far more than a restatement of the name. It stops short of naming the sibling 'strateji_karsilastir' as the multi-strategy alternative, so the boundary between the two is left implicit.

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 is implied rather than stated: the long-only, close-signal/next-open-execution, 0.2% commission and TL risk-free Sharpe assumptions tell an agent what kind of measurement this produces. There is no explicit 'use this when…' guidance, no prerequisites (e.g. data availability for the chosen symbol), and no mention of when to prefer 'strateji_karsilastir' instead.

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