Skip to main content
Glama

store_trade_memory

Records executed trades with market context and reflections to build a memory bank for analyzing performance and improving future trading decisions.

Instructions

Store a trade decision with full context into memory.

Call this after executing a trade to build your memory bank. Include market_context and reflection for better recall later.

Args: symbol: Trading instrument (e.g. "XAUUSD") direction: "long" or "short" entry_price: Entry price of the trade strategy_name: Name of the strategy used (e.g. "VolBreakout") market_context: Description of market conditions when trade was taken exit_price: Exit price (if trade is closed) pnl: Profit/loss in account currency (if trade is closed) reflection: What you learned from this trade trade_id: Optional custom ID. Auto-generated if omitted. timestamp: ISO format timestamp. Defaults to now (UTC).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
directionYes
entry_priceYes
strategy_nameYes
market_contextYes
exit_priceNo
pnlNo
reflectionNo
trade_idNo
timestampNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries full burden. It explains this is a storage/write operation ('store into memory') and mentions auto-generation of trade_id and timestamp defaults, but doesn't cover important behavioral aspects like data persistence guarantees, error handling, or whether this overwrites existing entries. The description adds some context but leaves significant gaps.

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 description is well-structured with a purpose statement, usage guidance, and detailed parameter explanations. While comprehensive, it's appropriately sized for a 10-parameter tool. The front-loaded purpose and usage sentences earn their place, though the parameter section is lengthy but necessary given the schema coverage gap.

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 complexity (10 parameters, no annotations) and the presence of an output schema (which handles return values), the description does well. It covers purpose, usage timing, and all parameter semantics. However, it lacks details about behavioral aspects like data persistence, error conditions, or how this integrates with sibling tools beyond basic differentiation.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates by providing clear semantic explanations for all 10 parameters. Each parameter gets specific guidance (e.g., 'Trading instrument (e.g. "XAUUSD")', '"long" or "short"', 'ISO format timestamp. Defaults to now (UTC)'), adding substantial value beyond the bare schema.

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 with specific verbs ('store a trade decision with full context into memory') and distinguishes it from siblings like 'remember_trade' by emphasizing comprehensive context storage. It explicitly mentions building a 'memory bank' for better recall later.

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

Usage Guidelines5/5

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

The description provides explicit usage guidance: 'Call this after executing a trade to build your memory bank.' It distinguishes from siblings by specifying this is for post-trade storage with full context, unlike 'recall_memories' or 'get_trade_reflection' which are retrieval 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/mnemox-ai/tradememory-protocol'

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