Skip to main content
Glama

Trade Postmortem & MFE/MAE Rule-Based Grader

trade_postmortem
Read-onlyIdempotent

FREE rule-based trade grade. Trade postmortem & MFE/MAE excursion expectancy analyzer: scores entry/exit efficiency, stop-loss placement vs empirical symbol ATR/MFE/MAE benchmarks, R-multiple capture, and rule compliance (rollover window, stop floor, time-stop) using fixed rules (no AI model calls). Informational only, not financial advice.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>",
      "side": "<side>",
      "entry_price": "<entry_price>"
    },
    "name": "trade_postmortem"
  }
}

Input Schema

NameRequiredDescriptionDefault
lotsNoPosition size in lots (optional)
sideYesTrade direction: buy/long or sell/short
symbolYesInstrument symbol, e.g. JP225, NAS100, US30, SPX500, DE30, XAUUSD, EURUSD, GBPUSD, USDJPY, AUS200
bars_heldNoNumber of bars held (optional)
stop_lossNoInitial stop-loss price (optional)
exit_priceNoRealized exit fill price (optional)
mae_pointsNoMaximum Adverse Excursion in points (optional)
mfe_pointsNoMaximum Favorable Excursion in points (optional)
entry_priceYesEntry fill price
take_profitNoInitial take-profit price (optional)
account_sizeNoAccount equity in USD for risk-% check (optional)
minutes_heldNoDuration held in minutes (optional)
stop_distanceNoInitial stop distance in price points (optional alternative to stop_loss)
entry_utc_hourNoUTC hour of entry 0-23 (optional; checks rollover/reset toxicity)
low_water_priceNoLowest price reached while trade was open (optional)
high_water_priceNoHighest price reached while trade was open (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description still adds real behavioral context beyond them: the grading is deterministic and rule-based with no model calls, so repeated calls are reproducible, and it is explicitly 'informational only, not financial advice'. It stops short of describing the response shape or what gets skipped when optional inputs are absent.

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?

One dense but well-ordered sentence plus a short disclaimer, front-loaded with the 'FREE rule-based' hook and then the scoring dimensions. Every clause carries information; the only cost is that packing six scoring axes into a single sentence makes it heavier to parse than a short bulleted structure would be.

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

Completeness3/5

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

For a 16-parameter tool with no output schema, the description omits the two things an agent most needs: what the returned grade/report looks like, and what happens when only the 3 required fields are supplied (which checks are silently skipped). The scoring dimensions and determinism guarantee are covered, so it is adequate but leaves a meaningful behavioral gap.

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 16 parameters are already documented and the baseline is 3. The description does add some interpretive linkage — the rollover-window rule maps to entry_utc_hour, stop floor to stop_loss/stop_distance, time-stop to minutes_held/bars_held — but it does not state which inputs unlock which checks or how the stop_distance alternative interacts with stop_loss.

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 concrete verb and resource — it grades a completed trade and analyzes MFE/MAE excursions — and enumerates the specific axes scored (entry/exit efficiency, stop placement vs ATR/MFE/MAE benchmarks, R-multiple capture, rule compliance). It never names or contrasts a sibling tool (e.g. council_grade), so an agent must infer positioning, which keeps it short of a 5.

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?

Usage is implied rather than stated: 'Trade postmortem' plus 'FREE rule-based... no AI model calls' signals this is for grading an already-closed trade deterministically, as opposed to an AI-based review. There is no explicit when-to-use/when-not, no statement about needing a closed trade versus an open one, and no guidance on which of the 13 optional parameters are needed for the compliance checks.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.