Skip to main content
Glama
mnemox-ai

TradeMemory Protocol

by mnemox-ai

Evolution Evolve Strategy

evolution_evolve_strategy

Evolve trading strategies across generations: generate LLM-based candidates, backtest in-sample, validate survivors out-of-sample, and eliminate weak hypotheses.

Instructions

Run full evolution loop — generate, backtest, select, eliminate.

Multi-generation strategy evolution: generates candidate patterns via LLM, backtests on in-sample data, validates survivors on out-of-sample data, eliminates weak hypotheses. Returns graduated strategies and graveyard.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoDays of history to use (default 90)
symbolYesTrading pair (e.g. "BTCUSDT")
timeframeNoBar timeframe — "5m", "15m", "1h", "4h", "1d"1h
generationsNoNumber of evolution generations (default 3)
population_sizeNoHypotheses per generation (default 10)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.4

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish the write/non-idempotent/non-destructive profile, and the description adds real behavioral substance: LLM-driven candidate generation, in-sample backtesting, out-of-sample validation of survivors, and elimination of weak hypotheses, plus what the result contains (graduated strategies and graveyard). It does not disclose that results are persisted (consistent with readOnlyHint=false), nor runtime/cost expectations for an LLM-plus-backtest loop.

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?

The pipeline summary is front-loaded in the first line and the second sentence elaborates with distinct detail rather than restating. There is mild redundancy between 'generate, backtest, select, eliminate' and the subsequent sentence, but overall it is tight and worth its length.

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

Completeness5/5

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

An output schema exists so return values need no elaboration, and the description still characterizes the return as graduated strategies plus a graveyard. The multi-stage process an agent must anticipate for a five-parameter orchestration tool is adequately conveyed, with only cost/latency and side effects left implicit.

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%, so symbol, days, timeframe, generations, and population_size are already fully documented in the schema with defaults and enum-like values. The description adds no parameter-level meaning beyond that, leaving this at the baseline for a well-covered schema.

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 names a specific verb and resource ('Run full evolution loop') and enumerates the four internal stages (generate, backtest, select, eliminate), which distinguishes it from nitty-gritty siblings like evolution_run_backtest or evolution_discover_patterns. It stops short of naming those siblings explicitly, so the differentiation is inferred rather than stated.

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 phrase 'Run full evolution loop' implies this is the end-to-end orchestrator rather than a single step, which is useful context against the granular evolution_* siblings. However, it never states when to prefer this tool over chaining evolution_discover_patterns + evolution_run_backtest, nor any prerequisites or exclusions.

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