Inputs
The agent sends the setup it is considering. Leroy does not need a candle dump or a giant prompt.
Request Body
POST /api/mcp
{
"symbol": "AAPL",
"side": "buy",
"entry_price": 212.34,
"holding_horizons": [15, 30]
}Connect Leroy to the agent or workflow you already use. Send a ticker and side; receive current context, historical matching, outcomes, and explicit limits.
No card required. Research only.
No broker connection or live trading.
Scroll through the five passes behind a MCP answer. Every step adds context before Leroy returns the evidence.
The agent sends the setup it is considering. Leroy does not need a candle dump or a giant prompt.
Request Body
POST /api/mcp
{
"symbol": "AAPL",
"side": "buy",
"entry_price": 212.34,
"holding_horizons": [15, 30]
}The current market frame adds context around the setup: volume, benchmarks, breadth, and volatility.
Volume
1.38× avg
SPY
+0.42%
VTI
+0.31%
Breadth
61% advancing
Volatility
Normal
Each supported strategy reports a signal so the agent can see agreement, disagreement, and neutral signals.
Opening Range 30
+0.82
Donchian 20
+0.67
Relative Strength
+0.41
VWAP
0.00
RSI 14
+0.04
Bollinger
−0.08
Leroy searches the verified record for comparable setups and measures what followed them.
AAPL · Buy · 15 minutes
184 comparable historical setups
Average Return
+3.84%
Win Rate
63%
Profit Factor
1.42
The agent receives the evidence, assumptions, and boundary in one deterministic response.
Possible Return
EvaluatedAAPL · buy
15-minute historical average
+3.84%
Samples
184
Win Rate
63%
Profit Factor
1.42
Request
Read-only demo. No API key required.
No ticker currently has an active exact setup. Run a request to inspect all 41 sensor states; the sensor field distinguishes neutral, blocked, warming, and active.
Request body
JSON{
"symbol": "AAPL",
"side": "buy",
"holding_horizons": [
15
]
}Want to test your own agent connection? Activate MCP in Account.
Response
Explicit status. No inferred values.
Run a request to see the complete response contract.
{
"status": "ready"
}Connect your agent to Leroy
The same request in a few common formats.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "evaluate_current_setup",
"arguments": {
"symbol": "AAPL",
"side": "buy",
"holding_horizons": [
15
]
}
}
}Use this endpoint in any MCP-compatible client.
https://getleroy.com/api/mcpExamples are for demonstration only. Historical evidence is not a forecast, investment advice, or a promise of future returns.
The Research Center is where the evidence engine opens up: replay the strategies, compare the context, follow the model, and inspect the paper ledger.
Open Research Center