brakeline
v0.4.1Risk guardrail proxy for AI trading agents: an MCP server that checks every order against your loss limits, position caps and revenge-trade rules before it…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
guard_status
Brakeline's current risk rules, whether new buys are allowed right now (kill switch, cooldowns), which rules are tripped, the remaining daily loss budget, and whether orders need the human's approval in the dashboard. Call this before planning trades.
get_journal
Recent orders Brakeline allowed, blocked or the human rejected, with the reason for each.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
get_account
Simulated account: cash, equity, today's P&L, positions and the remaining risk budget.
get_quote
Latest simulated price for a ticker.
| Parameter | Type | Description |
|---|---|---|
symbol * | string |
check_order
Dry-run an order against the risk rules without placing it. Returns every check with its numbers, and the max size allowed.
| Parameter | Type | Description |
|---|---|---|
qty * | integer | Whole shares |
side * | string | |
symbol * | string | Ticker. Simulated: any US stock or ETF with a Yahoo Finance price (built in: AAPL, MSFT, NVDA, TSLA, AMZN, GOOGL, META, AMD, PLTR, SPY, QQQ, COIN, HOOD, VTI, BND, GLD) |
limit_price | number | Optional limit price. Without it the order is a market order. |
place_order
Place an order. Brakeline checks the risk rules first and BLOCKS the order if any rule fails (the reason is returned). If the human turned on dashboard approval, this waits until they approve or reject it. Selling to reduce a position is always allowed by the rules.
| Parameter | Type | Description |
|---|---|---|
qty * | integer | Whole shares |
side * | string | |
symbol * | string | Ticker. Simulated: any US stock or ETF with a Yahoo Finance price (built in: AAPL, MSFT, NVDA, TSLA, AMZN, GOOGL, META, AMD, PLTR, SPY, QQQ, COIN, HOOD, VTI, BND, GLD) |
limit_price | number | Optional limit price. Without it the order is a market order. |