Skip to main content
Glama
mnemox-ai

TradeMemory Protocol

by mnemox-ai

Create Trading Plan

create_trading_plan

Store a rule-based trading plan that activates when conditions are met, enabling automated actions in AI trading agents until triggered or expired.

Instructions

Create a prospective trading plan that activates when conditions are met.

Stores a rule-based plan in prospective memory. The plan stays active until triggered, expired, or manually cancelled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priorityNoPriority 0-1, higher = checked first (default 0.5)
reasoningYesWhy this plan was created
expiry_daysNoDays until plan expires (default 30)
trigger_typeYesType of trigger (e.g. "market_condition", "drawdown", "time_based")
planned_actionYesJSON string describing what to do (e.g. '{"type": "skip_trade"}')
trigger_conditionYesJSON string describing when to trigger (e.g. '{"regime": "ranging"}')

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.5.4
    • addedInput schema / properties / expiry_days / description
      Added value: +"Days until plan expires (default 30)"
    • addedInput schema / properties / planned_action / description
      Added value: +"JSON string describing what to do (e.g. '{\"type\": \"skip_trade\"}')"
    • addedInput schema / properties / priority / description
      Added value: +"Priority 0-1, higher = checked first (default 0.5)"
    • addedInput schema / properties / reasoning / description
      Added value: +"Why this plan was created"
    • addedInput schema / properties / trigger_condition / description
      Added value: +"JSON string describing when to trigger (e.g. '{\"regime\": \"ranging\"}')"
    • addedInput schema / properties / trigger_type / description
      Added value: +"Type of trigger (e.g. \"market_condition\", \"drawdown\", \"time_based\")"
  2. First observedv0.4.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish this is a non-read-only, non-destructive, non-idempotent write, so the bar is lower; the description adds genuinely useful state behavior — the plan persists until triggered, expired, or cancelled. It stops short of noting authorization needs, what happens on duplicate plans (relevant given idempotentHint=false), or any rate/size limits.

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?

Three short sentences, front-loaded with the core action and followed by lifecycle context; nothing is padded. Minor overlap between 'prospective trading plan' and 'prospective memory' costs it the top score.

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?

An output schema exists, so return values need not be explained, and the schema fully documents the six parameters. The lifecycle sentence completes the picture; only the relationship to 'check_active_plans' and the consequences of a non-idempotent create are unaddressed.

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?

With 100% schema description coverage, every parameter including priority, expiry_days, trigger_type, planned_action, trigger_condition, and reasoning is already documented in the schema. The description adds no syntax, format, or example detail beyond it, so the baseline 3 applies.

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 states a specific verb and resource ('Create a prospective trading plan') and clarifies the defining behavior — activation on met conditions. It doesn't explicitly contrast with the related sibling 'check_active_plans', which is the main thing an agent would confuse this with when looking for existing plans.

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

Usage Guidelines2/5

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

The description explains the plan's lifecycle but never says when an agent should create a plan rather than, say, record a memory ('remember_trade') or inspect existing plans ('check_active_plans'). No alternatives or prerequisites are named, so the routing decision is left to inference.

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