Endpoints
Each endpoint runs one MCP tool. This page is built from the live endpoint list, so it matches the API.
Base URL: https://api.fortell.finance/v1/agent. Send Authorization: Bearer fk_live_... on every call. Open the base URL with GET to get this list as JSON, with the full schema of every argument.
Read (24)
Needs the read scope. A read takes GET with a query string, or POST with a JSON body.
- GET
/v1/agent/whoamiThe key: its id, name, scopes, wallet and expiry.
- Scope
- read
- MCP tool
- none (the key itself)
- GET
/v1/agent/overviewTHE FIRST CALL in a new session: it says if the person has an account and if the free $100 Evaluation is open.
- Scope
- read
- MCP tool
- fortell_overview
Arguments (4)
Name Type What it is view "challenge" | "positions" | "board" "challenge" (default): the dashboard. "positions": each open round against each rail. "board": the tradable rounds with both clocks. marketId string Sharpens the size rail to one round, as in fortell_brief. since integer Append a block of what filled or settled since this cursor. asset string On the `board` view, also show how that asset's recent rounds settled, e.g. "BTC". - GET
/v1/agent/walletThe wallet this connection acts for, its network, its SOL and token balances, whether this server holds a signing key, and the unsigned builds not yet submitted.
- Scope
- read
- MCP tool
- fortell_wallet
Arguments (1)
Name Type What it is detail "compact" | "full" "compact" (default) or "full". - GET
/v1/agent/catalogSpends nothing, but it opens a session if there is none, because a discount belongs to one wallet.
- Scope
- read
- MCP tool
- fortell_challenge_catalog
Arguments (3)
Name Type What it is code string Optional promo code, exactly as given. A discount already granted to this wallet needs none. Codes have a budget (10 per 10 minutes, 60 a day per account), so a guess gets a 429. If a code is rejected, ask for the right one; do not try variations. tier string One account id from `tiers`. Omit for every account on sale. section "tiers" | "accounts" | "rules" | "notes" "tiers" (default; "accounts" is the same): the accounts and the blocks they share. "rules": the scored-call, forecast score and consistency rules in full. "notes": the fixed notes on titles, windows, payment and discounts. - GET
/v1/agent/stateThis wallet's EVALUATION ledger. For the funded account, use fortell_seat.
- Scope
- read
- MCP tool
- fortell_state
Arguments (1)
Name Type What it is marketId string Makes `maxBuyNow` exact for that round. The size rail is per round. - GET
/v1/agent/progressHow the active (or latest) evaluation stands on every pass criterion, with the rails, the window, the BUCKET it was sold with (the window, the early pass and the loss cap count in buckets) and its payment transaction.
- Scope
- read
- MCP tool
- fortell_progress
- GET
/v1/agent/briefTHE LOOP TOOL. Read-only. Spends nothing. One read for a decision: the rails and the largest order the server accepts now (`rails.maxBuyNow`, not an estimate), open positions (on a Perps evaluation, its open Perps positions with `kind` "per
- Scope
- read
- MCP tool
- fortell_brief
Arguments (3)
Name Type What it is marketId string Makes `rails.maxBuyNow` exact for that round. since integer A previous `nextCursor`. Adds `changed`: the fills and settlements since then. markets integer How many rounds. Default 8; 0 skips the board. - GET
/v1/agent/stocksThe older US-equity markets (`PHOENIX-EQ-<SYMBOL>`) that a stocks evaluation trades, with Phoenix's last price and its age (`ageSecs`), and your stock positions marked at the price a close fills at.
- Scope
- read
- MCP tool
- fortell_stocks
Arguments (4)
Name Type What it is all boolean In an evaluation that does not cover stocks, list them anyway, each marked not tradable. Default false. symbols string[] Only these symbols. Omit for all. detail "compact" | "full" "full": every field and the notes. section "board" | "notes" "notes": the notes only. - GET
/v1/agent/seatRead-only. Spends nothing. Your funded account, read from chain: equity, its size and payout basis, the hold floor of its level and the largest claim that keeps it, the drawdown and per-bucket loss rails, frozen or flat, what a claim pays t
- Scope
- read
- MCP tool
- fortell_seat
- GET
/v1/agent/profileRead-only. Spends nothing. A trader's public page: each evaluation bought, pass or fail, whether each was FINISHED (the required scored calls AND a final result; an early end on a limit is not finished), crew badges, the current crew, and w
- Scope
- read
- MCP tool
- fortell_profile
Arguments (1)
Name Type What it is trader string A wallet address whose PUBLIC page to read. Omit for your own. Reading never acts for that trader. - GET
/v1/agent/leaderboards`board: crews` ranks crews that have started by PACE, then Crew Score.
- Scope
- read
- MCP tool
- fortell_leaderboards
Arguments (2)
Name Type What it is board "crews" | "traders" Default crews. who "humans" | "agents" Default humans. Agent profiles have their own board. - GET
/v1/agent/referralYour referral link and code, the number of sign-ups through it, who referred you (`referredBy`; remove it with Not me on the website or phone, before the account buys anything paid), and your CREDIT.
- Scope
- read
- MCP tool
- fortell_referral
- GET
/v1/agent/crewNo `action`: your crew (or null), each member's pace, the Crew Score (the average over the whole roster), the invite link and each mode's price now.
- Scope
- read
- MCP tool
- fortell_crew
Arguments (5)
Name Type What it is action "create" | "join" | "invite" | "leave" Omit to read your crew. mode "duo" | "trio" CREATE: duo is 2 people, trio 3. name string CREATE: letters, numbers, spaces or - _ ' . code string JOIN: the code after code= in the invite link. friend string INVITE: a friend's wallet, for a beta invite. - GET
/v1/agent/transparencyRead-only. Spends nothing. The results of bought evaluations: sold, passed and failed, the pass rate WITH the bucket it was measured in, failure reasons, the treasury's on-chain balance against its buffer, and the trust numbers (paid out pe
- Scope
- read
- MCP tool
- fortell_transparency
Arguments (2)
Name Type What it is tier string One account id. Omit for every account. section "figures" | "notes" "figures" (default): the numbers. "notes": the fixed notes, the payout rules, the failure-reason rule and the actor caveat. - GET
/v1/agent/price-historyA price series as `[ts, price]` pairs (`ts` in unix seconds).
- Scope
- read
- MCP tool
- fortell_price_history
Arguments (9)
Name Type What it is marketId string A round id, or `PHOENIX-PERP-<SYMBOL>`. asset string A spot asset, or a Perps-only symbol. Ignored with `marketId`. mins integer Minutes back. Default 30, max 360. On Perps with no `range`: 60 or less is 1h, 240 or less is 4h, else 1d. range "1h" | "4h" | "1d" | "1w" PERPS: 1h (each 30 s), 4h (each minute), 1d (each 5 min) or 1w (each 30 min). candles "1m" | "5m" | "15m" | "1h" | "4h" | "1d" PERPS: candle size. Alone: 1m spans 1h, 5m 4h, 15m 1d, 1h 1w. With `from`, `to` or `limit` (and always for 4h and 1d): a history page. from integer PERPS history page: the first candle, in unix seconds or an ISO date (2026-11-01; no zone is UTC). 0 is the listing. Gives the page forward from it. to integer PERPS history page: the end, in unix seconds or an ISO date (not included). Default now. Without `from`, the page is the newest `limit` candles before it. limit integer PERPS history page: at most this many candles. Default 200; up to 1000. maxPoints integer At most this many points, evenly spaced, newest kept. Default 60; up to 1000. Not for a history page. - GET
/v1/agent/backtestRead-only: signs nothing, moves no money, never touches an evaluation.
- Scope
- read
- MCP tool
- fortell_backtest
Arguments (14)
Name Type What it is markets string[] 1 to 8 `PHOENIX-PERP-<SYMBOL>` ids, e.g. ["PHOENIX-PERP-BTC"]. With `coverage`, omit for every market. interval "15m" | "1h" | "4h" | "1d" Candle size: 15m, 1h, 4h or 1d. With `coverage`, omit for every size (one market) or 1d (all markets). from integer First candle: unix seconds or an ISO date (UTC). 0 or omitted is the market's listing. to integer The end, in unix seconds or an ISO date (not included). Default now. entry object The entry rule, from the fixed vocabulary. Needed for one run. Do not send it with `variants`. exit object The exit rules. Give at least one of an ATR stop, a fixed stop or a time stop. filters object Optional entry filters. variants object[] BATCH: 1 to 10 labelled rule sets (each a label, an entry, an exit and filters, the fields of the top-level ones) on the same markets, size, span, costs, sizing and split. The candles are read once. One ranked row each; a batch of N counts as N runs. Do not also send top-level `entry`, `exit` or `filters`. detail string[] BATCH: the labels whose full result you want. Omit for the ranked rows only. coverage boolean true: run nothing; return what data exists (first candle, last closed, most candles) a market and size. 1 run. tier string OPTIONAL: a Perps evaluation id or name from fortell_challenge_catalog (e.g. "Evaluation $100"). Adds an `evaluation` verdict. Omit = unchanged. costs object The cost model. Each field has a default. sizing object The sizing model. split object Where to split in-sample from out-of-sample. - GET
/v1/agent/market-contextRead-only. Spends nothing. Derived market CONTEXT (not advice) for one Fortell Perps market, from CoinGecko: `basisPct` (CoinGecko spot vs the Phoenix mark, percent), `volumeSpikeRatio` (24h volume over the 7-day average; 1 is average), `re
- Scope
- read
- MCP tool
- fortell_market_context
Arguments (1)
Name Type What it is market (required) string A Perps symbol (BTC, SOL, kBONK). - GET
/v1/agent/perps/marketsThe Perps markets (Phoenix: crypto, US stocks and commodities) that this wallet can trade on ONE ledger (`ledger`; `ledgers` says which ledgers it has).
- Scope
- read
- MCP tool
- fortell_perps_markets
Arguments (4)
Name Type What it is ledger "challenge" | "practice" | "funded" Omit for the default: your evaluation, else your funded account. symbols string[] Only these markets, by symbol ("BTC") or market id. Omit for all. limit integer At most this many markets, after `symbols`. Omit for all. detail "compact" | "full" "compact" (default): one short row per market. "full": every field. - GET
/v1/agent/perps/quoteWhat one standard Perps open would be, for `marketId`, `side`, the SIZE (exactly one of `sizeUsd`, the USD notional, or `baseQty`, base units) and `leverage`.
- Scope
- read
- MCP tool
- fortell_perps_quote
Arguments (8)
Name Type What it is marketId (required) string `PHOENIX-PERP-<SYMBOL>` or the symbol alone, e.g. "PHOENIX-PERP-BTC" or "BTC". side (required) "long" | "short" "long" gains when the price goes up; "short" when it goes down. sizeUsd number The SIZE in dollars (the USD notional). Give this OR `baseQty`. baseQty number The SIZE in base units (BTC, AAPL...). Give this OR `sizeUsd`. usd number OLD: the MARGIN in dollars. Mapped to `sizeUsd` = `usd` x `leverage`. Prefer `sizeUsd` or `baseQty`. leverage number A multiple of the size's margin, up to this market's `maxLeverage` (5x at most unless a funded account says otherwise). Default 1. slippageBps integer The most the fill may move against you, in bps (0.05% to 5%). Default 100 (1%). One-tap choices 5, 10, 50, 100 (fortell_perps_rails). Past it, nothing fills. ledger "challenge" | "practice" | "funded" Omit for the default: your evaluation, else your funded account. - GET
/v1/agent/perps/positionsYour open and recent closed Perps positions: side, size, entry, price, unrealized PnL, margin, leverage, the AUTO-CLOSE level (`autoClosePriceUsd`), `canCloseAt`, and `costs` per position (null is not recorded, never 0), with totals in `tradingCosts`.
- Scope
- read
- MCP tool
- fortell_perps_positions
Arguments (6)
Name Type What it is ledger "challenge" | "practice" | "funded" Omit for the default: your evaluation, else your funded account. closed object COMPLETE TRADE RECORDS, one row per deal (`tradeId`, side, size, entry, exit, leverage, fee, net P&L, times, `closedByActor`). An evaluation (the default) adds spread, funding and the stop and take at entry. With `ledger: "funded"`: a funded seat's closed positions in the same shape (`unread`/`truncatedBefore`: a close is never silently dropped). Paged on the server; each page's `nextCursor` goes in `closed` on the next call. since string A `cursor` or `nextCursor`, or "start". Only events after it. limit integer With `since`: the most events. Default 50, max 200. waitSecs integer With `since`: wait up to this many seconds (0 to 25) for an event. Default 0. watch object With `since`: also end the wait on a price move from `anchors` or a line near (`watch.anchors` comes back; send it next time). - GET
/v1/agent/perps/railsEvery limit of your Perps evaluation in one read, from the code that refuses orders.
- Scope
- read
- MCP tool
- fortell_perps_rails
Arguments (2)
Name Type What it is ledger "challenge" | "practice" | "funded" Omit for the default: your evaluation, else your funded account. whatIfReturnPct number One more call's net return on margin, in percent, after fees and funding (5 is +5%). The score limits each call to -50%..+50%. - GET
/v1/agent/playbookmd file in the Agent Skills format. The five are position-watch, rails-watch, pass-coach, order-helper and journal-coach.
- Scope
- read
- MCP tool
- fortell_playbook
Arguments (2)
Name Type What it is skill "position-watch" | "rails-watch" | "pass-coach" | "order-helper" | "journal-coach" | "fortell-setup" A playbook name. Leave it out to list the playbooks. template "pass-coach-guard" | "btc-scalp-desk" | "eth-sol-intraday" | "swing-keeper" | "trend-follow-frame" | "range-frame" | "breakout-watch" | "commodities-event-day" | "stocks-session" A template id. It returns that frame. Leave it out for a playbook. - GET
/v1/agent/guidemd. CALL THIS WHEN YOU CANNOT FETCH THOSE TWO URLS (a blocked fetch, or no web fetch at all): it is the fallback that works over this connection.
- Scope
- read
- MCP tool
- fortell_guide
Arguments (1)
Name Type What it is doc "llms.txt" | "skill.md" "llms.txt" (the map) or "skill.md" (the full playbook). Leave it out for both. - GET
/v1/agent/changelogLists the newest changes: `changes` says in words what changed (read from the Fortell API, each with the `url` of its page), and `releases` names, for each server version, the tools and prompts it added, removed or changed.
- Scope
- read
- MCP tool
- fortell_changelog
Evaluation orders (3)
Paper orders on your Evaluation. Add ledger funded to build the order on your funded account instead, which needs funded-build.
- POST
/v1/agent/perps/openOpens a long or short Perps position on isolated margin. The trader sets the SIZE (exactly one of `sizeUsd`, the USD notional, or `baseQty`, base units) and the `leverage`; the order is an IOC at your slippage limit.
- Scope
- trade-evaluation (ledger funded: funded-build)
- MCP tool
- fortell_perps_open
Arguments (15)
Name Type What it is marketId (required) string `PHOENIX-PERP-<SYMBOL>` or the symbol alone, e.g. "PHOENIX-PERP-BTC" or "BTC". side (required) "long" | "short" "long" gains when the price goes up; "short" when it goes down. sizeUsd number The SIZE in dollars (the USD notional). Give this OR `baseQty`. baseQty number The SIZE in base units (BTC, AAPL...). Give this OR `sizeUsd`. FUNDED: not yet; use `sizeUsd` or `usd`. usd number OLD: the MARGIN in dollars. Mapped to `sizeUsd` = `usd` x `leverage`. Prefer `sizeUsd` or `baseQty`. leverage number A multiple of the size's margin, up to this market's `maxLeverage` (5x at most unless a funded account says otherwise). Default 1. stopLoss number Close at the market at this price ($). FUNDED: set in the same transaction as the open. takeProfit number Close at this price ($). FUNDED: set in the same transaction as the open. ledger "challenge" | "practice" | "funded" Omit for the default: your evaluation, else your funded account. clientOrderId string A NEW id is a new order; the SAME id retries one whose answer you did not see. tag string Order label. slippageBps integer The most the fill may move against you, in bps (0.05% to 5%). Default 100 (1%). One-tap choices 5, 10, 50, 100 (fortell_perps_rails). FUNDED: the venue bound, default 25. agentKey string FUNDED: a key the owner granted (fortell_build_grant_agent). It signs. agentName integer With `agentKey`: the grant name. Default 1. transactionVersion "v1" | "legacy" | "v0" FUNDED: "v1" (the default: ONE transaction v1), "legacy", or "v0" (Fortell's lookup table; refused "v0_unavailable" when none). Ask for legacy when the wallet cannot sign v1. - POST
/v1/agent/perps/closeCloses a Perps position, or a `fraction`. ON AN EVALUATION it closes the paper position at once.
- Scope
- trade-evaluation (ledger funded: funded-build)
- MCP tool
- fortell_perps_close
Arguments (8)
Name Type What it is marketId (required) string `PHOENIX-PERP-<SYMBOL>` or the symbol alone, e.g. "PHOENIX-PERP-BTC" or "BTC". fraction number More than 0, up to 1. Default 1. ledger "challenge" | "practice" | "funded" Omit for the default: your evaluation, else your funded account. clientOrderId string The SAME id retries a close whose answer you did not see. tag string Order label. slippageBps integer FUNDED: the most from the venue's price, in bps. Default 25. agentKey string FUNDED: a key the owner granted. It signs. agentName integer With `agentKey`: the grant name. Default 1. - POST
/v1/agent/perps/protectionSets ("set", again to change it) or cancels ("cancel") a stop loss or take profit on an open Perps position.
- Scope
- trade-evaluation (ledger funded: funded-build)
- MCP tool
- fortell_perps_protection
Arguments (11)
Name Type What it is action (required) "set" | "cancel" "set" or "cancel" (with `orderId`). kind "stop_loss" | "take_profit" SET: which one. marketId string `PHOENIX-PERP-<SYMBOL>` or the symbol alone, e.g. "PHOENIX-PERP-BTC" or "BTC". triggerPrice number SET: the price in dollars. orderId string CANCEL: the order `id` from fortell_perps_positions. SET (evaluation): the order to move. sizePct number SET (evaluation): close this percent of the position (0.01 to 100), rounded down to whole lots. sizeLots string | integer SET (evaluation): close this many base lots. Not with `sizePct`. tag string Order label. ledger "challenge" | "practice" | "funded" Omit for the default: your evaluation, else your funded account. agentKey string FUNDED: a key the owner granted. It signs. agentName integer With `agentKey`: the grant name. Default 1.
Funded builds (10)
Each one builds an unsigned transaction. A write takes POST only. See Funded builds.
- POST
/v1/agent/funded/buy-challengeBuilds but does NOT sign or send the payment for one evaluation account.
- Scope
- funded-build
- MCP tool
- fortell_build_buy_challenge
Arguments (2)
Name Type What it is tier (required) string An account `id` from fortell_challenge_catalog. Never guess or reuse one. code string Optional promo code, exactly as given. A discount already granted to this wallet needs none. Codes have a budget (10 per 10 minutes, 60 a day per account), so a guess gets a 429. If a code is rejected, ask for the right one; do not try variations. - POST
/v1/agent/funded/resume-purchaseIt NEVER pays again. It finishes the registration of an evaluation whose entry payment already landed.
- Scope
- funded-build
- MCP tool
- fortell_resume_purchase
- POST
/v1/agent/funded/claimBuilds but does NOT sign or send a profit claim from a funded account.
- Scope
- funded-build
- MCP tool
- fortell_build_claim
Arguments (2)
Name Type What it is vault string The account address, when this wallet has more than one. Defaults to the only one. amountUsd number How much to take, in the account's dollars. Default and maximum: fortell_seat's `maxClaimUsd`. More is refused here. - POST
/v1/agent/funded/hand-backBuilds but does NOT sign or send the hand-back (settle_to_pool) of a funded account, for its trader to sign.
- Scope
- funded-build
- MCP tool
- fortell_hand_back_seat
Arguments (1)
Name Type What it is vault string The account address, when this wallet has more than one. Defaults to the only one. - POST
/v1/agent/funded/level-upBuilds but does NOT sign or send apply_promotion, which moves a funded account ONE level up its ladder.
- Scope
- funded-build
- MCP tool
- fortell_build_level_up
Arguments (1)
Name Type What it is vault string The account address, when this wallet has more than one. Defaults to the only one. - POST
/v1/agent/funded/grant-agentBuilds but does NOT sign or send set_agent, for the account OWNER to sign one time.
- Scope
- funded-build
- MCP tool
- fortell_build_grant_agent
Arguments (5)
Name Type What it is agentKey (required) string The key to grant (the PayBox wallet address). Not the owner's wallet. name integer The grant's one-byte name. 0 is the device key; a bot uses 1 or higher. Default 1. hours number 1 to 8, on the chain's clock. Default 4. capUsd (required) number The most cash for BUYS over the grant, at most the funded principal. Sells are never limited. vault string The account address, if this wallet has more than one. - POST
/v1/agent/funded/seat-tradeBuilds but does NOT sign or send a funded-account trade (a round, or a stock on a stock account).
- Scope
- funded-build
- MCP tool
- fortell_build_seat_trade
Arguments (13)
Name Type What it is action (required) "buy" | "sell" "buy" opens or adds; "sell" closes or reduces. round string A round address or board id; a buy defaults to the round that closes first. STOCK: `PHOENIX-EQ-<SYMBOL>`, required. usd number BUY size, required. STOCK: the MARGIN (the most it can lose); size is `usd` x `leverage`. lots integer STOCK: base lots (0.001 share) in place of `usd` x `leverage`. All or nothing. leverage number STOCK: 1 to the account's bound (fortell_seat `isolated.maxLeverageBps` / 10,000). Default 1. side "long" | "short" STOCK: "long" (default) or "short". The other side of a held name is refused. fraction number SELL: the fraction held. Default 1. outcome integer The round side, 0 or 1. Required for a buy; a sell uses the held side. slippageBps integer The most below the simulated fill, in bps (default 2500); a tight bound refuses normal moves. STOCK: 5 to 300, default 25. vault string The account address, if this wallet has more than one. minFillUsd number BUY: accept a partial fill down to this ($0.50 to `usd`); `clamp` shows the size. Without it, a buy over the rails is refused. agentKey string A key the OWNER granted (fortell_build_grant_agent) signs and pays the fee; `wallet` stays the owner. Refused without a live grant with cash room. agentName integer With `agentKey`: the grant name. Default 1. - POST
/v1/agent/funded/seat-bracketBuilds but does NOT sign or send a stop-loss and/or take-profit ("set") or their removal ("clear") for ONE position on a funded STOCK account, in $/share.
- Scope
- funded-build
- MCP tool
- fortell_seat_bracket
Arguments (7)
Name Type What it is action (required) "set" | "clear" "set" (one line or both) or "clear" (both). marketId (required) string The position's `PHOENIX-EQ-<SYMBOL>`. stopUsd number SET: $/share. A long's stop is below the mark, above the auto-close; a short's the opposite. takeUsd number SET: $/share. A long's take is above the mark; a short's below. vault string The account address, if this wallet has more than one. agentKey string Sign as a key the owner granted (fortell_build_grant_agent). It pays the fee and signs. agentName integer With `agentKey`: the grant name. Default 1. - POST
/v1/agent/funded/seat-orderBuilds but does NOT sign or send a waiting order ("place") or its removal ("cancel") on your funded STOCK account.
- Scope
- funded-build
- MCP tool
- fortell_seat_order
Arguments (11)
Name Type What it is action (required) "place" | "cancel" "place" or "cancel" (with `orderId`). kind "limit" | "stop_loss" | "take_profit" PLACE: what to leave. marketId string PLACE: `PHOENIX-EQ-<SYMBOL>`. side "long" | "short" PLACE: a limit's direction, or the protected position's side. usd number LIMIT: the margin in dollars. leverage number LIMIT: up to the account's leverage rail. Default 1. limitPrice number LIMIT: $/share; a long fills at or below it, a short at or above. triggerPrice number STOP / TAKE: the mark in $/share that fires it. positionId string STOP / TAKE: `slot:<n>` from fortell_seat, if the name holds more than one. orderId string CANCEL: the order's `id` (its address), or its index. vault string The account address, if this wallet has more than one. - POST
/v1/agent/funded/submitMOVES MONEY AND CANNOT BE UNDONE.
- Scope
- funded-build
- MCP tool
- fortell_submit_signed_transaction
Arguments (2)
Name Type What it is intentId (required) string The `intentId` of the matching build. signedTransaction (required) string The signed transaction, base64 (base58 also accepted). The bytes of that build, signed, not rebuilt.