Skip to main content
Glama
mnemox-ai

TradeMemory Protocol

by mnemox-ai

Check Trade Legitimacy

check_trade_legitimacy
Idempotent

Assess whether an agent has enough data, confidence, and risk context to trade at full size by reviewing sample size, memory quality, regime experience, streaks, and drawdown.

Instructions

Check if the agent has sufficient data and confidence to trade.

Call this before making any trade decision. Evaluates sample size, memory quality, regime experience, streak state, and drawdown to determine whether the agent has earned the right to trade at full size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolNoTrading instrument (default "XAUUSD").XAUUSD
strategy_nameYesStrategy to evaluate (e.g. "VolBreakout").
current_atr_d1NoCurrent ATR(14) on D1 in dollars (informational).
current_regimeNoCurrent market regime (trending_up/trending_down/ranging/volatile).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.4

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and idempotentHint=true, which is slightly unusual for what reads as an evaluative check; the description explains it's a gating decision ('earned the right to trade at full size') rather than a mutation, adding useful behavioral context. It stops short of describing the return semantics or thresholds, but output schema exists to cover that.

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?

Two short sentences, front-loaded with the core purpose and followed by the timing instruction. Efficient and easy to scan, though the second sentence packs several evaluation factors into a list.

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 an output schema exists and full schema coverage, the description needn't detail return values. It adequately conveys purpose, timing, and evaluated dimensions for a decision-gating tool.

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 the schema already documents all four parameters thoroughly, giving a baseline of 3. The description adds no extra parameter-level meaning beyond indicating what is evaluated.

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 purpose: checking whether the agent has sufficient data and confidence to trade, and it lists the evaluated factors (sample size, memory quality, regime experience, streak state, drawdown). It's distinguishable from siblings like validate_strategy or get_agent_state, though the description does not explicitly contrast with them.

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?

It gives a clear timing cue: 'Call this before making any trade decision.' This tells the agent when to use it, but it doesn't name alternatives or when-not-to-use cases (e.g., versus validate_strategy or compute_dqs).

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