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. Rank current signal confluence in one snapshot, then send a ticker and side for historical context, outcomes, and explicit limits.
No card required. Free accounts include 100 lookups each month.
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
Agent Wake
Tell Leroy what to watch. When a fresh live setup meets the rule, Leroy wakes your trading agent and sends the evidence it needs to decide what happens next.
The delivery is a signed HTTPS webhook with current quote context, signal confluence, match strength, historical outcomes, provenance, and an explicit research-only boundary. Leroy never places an order.
Create a Wake Rule01
Choose a ticker, side, confluence, evidence strength, and outcome threshold.
02
Only fresh frames during the regular market session can trigger a wake.
03
Your endpoint receives a signed evidence packet and remains responsible for any action.
The operating loop
A rule is durable. A wake is event-driven. The payload is auditable.
POST https://agent.example.com/leroy/wake
X-Leroy-Event: evidence.setup
X-Leroy-Signature: v1=...
{ "event": "evidence.setup",
"trigger": { "side": "buy", "active_signal_count": 7,
"match_strength": 4, "horizon_minutes": 15 },
"research_boundary": { "live_order": false } }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
]
}
}
}Ask get_current_confluence_leaders for the current quote-fresh symbols with the most active signal agreement. It is one scanner snapshot and one lookup; follow it with evaluate_current_setup when a specific ticker needs historical evidence.
{
"side": "buy",
"limit": 5
}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