Skip to main content
Glama
mnemox-ai

TradeMemory Protocol

by mnemox-ai

remember_trade

Store a trade and automatically update episodic, semantic, procedural, and affective memory to enable outcome-weighted learning and strategy adjustment.

Instructions

Store a trade into OWM multi-layer memory with automatic updates.

Writes to episodic memory and automatically updates semantic (Bayesian), procedural (running averages + hold time + Kelly), and affective (EWMA confidence/streaks). Also writes to trade_records for backward compatibility.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pnlYesProfit/loss in account currency
pnl_rNoP&L as R-multiple (risk units). Improves OWM scoring quality.
symbolYesTrading instrument (e.g. "XAUUSD")
trade_idNoOptional custom ID. Auto-generated if omitted.
directionYes"long" or "short"
timestampNoISO format timestamp. Defaults to now (UTC).
confidenceNoAgent confidence level 0-1 (default 0.5)
exit_priceYesExit price of the trade
reflectionNoLessons learned from this trade
entry_priceYesEntry price of the trade
strategy_nameYesStrategy used (e.g. "VolBreakout")
context_atr_d1NoATR(14) on D1 in dollars
context_regimeNoMarket regime (trending_up/trending_down/ranging/volatile)
exit_timestampNoISO format exit time. Used to compute hold duration.
market_contextYesDescription of market conditions
entry_timestampNoISO format entry time. Used to compute hold duration.
max_adverse_excursionNoMaximum adverse excursion during the trade

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

The description goes far beyond the annotations by detailing the side effects: writes to episodic memory, auto-updates semantic (Bayesian), procedural (running averages + hold time + Kelly), affective (EWMA confidence/streaks), and writes to trade_records for backward compatibility. This level of disclosure is critical for a tool with significant side effects, and the annotations only indicate mutation (readOnly=false), not the full scope. No contradiction exists.

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 compact and front-loaded: the first sentence states the core purpose, and the second sentence lists the side effects. Every sentence earns its place, with no fluff or redundant phrases. It delivers substantial information in just two sentences.

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?

Given the tool's complexity (17 parameters, multiple memory layers), the description provides a comprehensive overview of behavior and integration with the OWM system. It explains the automatic updates and backward compatibility, which is essential context. The output schema exists, so the description need not explain return values, and the input schema covers parameter details.

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 all 17 parameters are documented in the schema itself. The description adds no parameter-specific details beyond what the schema already provides. It does indirectly add context by explaining why the tool exists (e.g., 'Improves OWM scoring quality' is in the schema), but the description itself does not clarify parameter meanings. Thus a baseline of 3 is appropriate.

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 tool's purpose: 'Store a trade into OWM multi-layer memory with automatic updates.' It specifies the resource (trade), the action (store), and the scope (multi-layer memory with automatic updates). It distinguishes itself from sibling read/query tools by explicitly listing the memory layers affected (episodic, semantic, procedural, affective, trade_records).

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: when a trade needs to be recorded into the OWM memory system with all automatic updates. It does not explicitly name alternative tools or state 'when not to use,' but the context is well defined. Given the sibling list includes many read/query tools, the write-oriented wording effectively differentiates it without needing explicit exclusions.

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/mnemox-ai/tradememory-protocol'

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