Compound Tools
pre_trade_gate and assess_trading_system: multi-tool chains in a single call.
Compound tools chain multiple operations into a single call. They cost less than calling each tool individually and provide a unified response.
pre_trade_gate
Cost: $0.01 | Complete pre-trade validation in one call.
Combines:
- Position sizing (G-formula) to calculate the optimal number of shares.
- Risk validation (Iron Fist rules) to approve or reject the trade.
- System health (optional, if R-multiples provided) to assess current edge status.
Use this before every trade.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | Instrument symbol (e.g. "AAPL"). |
direction | string | Yes | "long" or "short". |
entry_price | string | Yes | Planned entry price. |
stop_price | string | Yes | Stop loss price. |
equity | string | Yes | Account equity in USD. |
daily_pnl | string | No | Daily P&L so far. Default "0". |
risk_percent | string | No | Risk as decimal. Default "0.02" (2%). |
r_multiples | string[] | No | Recent R-multiples. If provided, includes system health check. |
Example
Response
How gate_passed is determined
gate_passed is true when both conditions are met:
sizing.shares > 0(position size is valid)risk.approved == true(all Iron Fist rules pass)
System health is informational. A declining G does not block the gate. You can add your own logic to incorporate system health into your decision.
assess_trading_system
Cost: $2.00 | Comprehensive trading system assessment in a single call.
Chains 7 analyses together:
- G-metric evaluation to measure geometric growth rate
- Win/loss analysis for batting average and payoff ratio
- Kelly criterion for optimal position sizing
- Monte Carlo simulation to project future equity paths
- Drawdown analysis to measure downside risk
- What-if scenarios to find improvement opportunities
- Variance killer detection to identify G-damaging trades
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
r_multiples | string[] | Yes | R-multiples from trade history (10+ recommended). |
equity_values | string[] | No | Equity values after each trade (for drawdown). |
starting_equity | string | No | Starting equity. Default "100000". |
pnl_values | string[] | No | USD P&L per trade (for detailed win/loss). |
Example
Response structure
Cost comparison
Calling all 7 tools individually would cost approximately $0.04. The compound tool costs $2.00 because it runs full-depth Monte Carlo (5,000 simulations) and comprehensive analysis at each step. Use individual tools when you need specific metrics; use assess_trading_system when you want the complete picture.
record_trade_journal
Cost: $0.003 | Record a completed trade to the agent's journal.
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | Instrument symbol. |
direction | string | Yes | "long" or "short". |
entry_price | string | Yes | Entry price. |
exit_price | string | Yes | Exit price. |
stop_price | string | Yes | Stop loss price. |
quantity | string | Yes | Position quantity. |
r_multiple | string | No | Realized R-multiple. |
pnl | string | No | Realized P&L in dollars. |
trade_date | string | No | Trade date as ISO string (e.g. "2026-03-25"). |
notes | string | No | Free-text notes. |
Returns: confirmation with trade_id, symbol, r_multiple, pnl, recorded_at.
| Python SDK | pip install systemr |
| MCP Server | agents.systemr.ai/mcp/sse |
| OpenAPI Spec | agents.systemr.ai/openapi.json |
| Machine Docs | agents.systemr.ai/llms.txt |
| GitHub | System-R-AI |
| X | @Systemrai |
| YouTube | @systemr_ai |
| hello@systemr.ai | |
| Phone | 628 333 6693 |
| Address | 7901 4TH ST N, STE 28529, ST PETERSBURG, FL 33702 |
| Terms | Terms of Service |
| Privacy | Privacy Policy |
| Security | Security Policy |