Every tool
Every Unitley tool with its scope, arguments, what it returns and the errors it can send, the same over MCP, the REST API and the web analyst.
Every Unitley tool, grouped by what it works on. The MCP server, the REST API and the web analyst all serve these tools from one registry, so a tool takes the same arguments and returns the same result wherever you call it.
- Over MCP, call a tool with
tools/call, its name and its arguments. See The MCP server. - Over REST,
POSTthe arguments as a JSON object to/api/v1/tools/<name>. See Endpoints.
Each card below shows the tool's arguments and the description agents are given, read from the registry. The notes under a card add what it returns and the errors it can send. Errors lists every error code.
Scopes
Every tool has a scope: read or write. A read-only token can call every read tool. The tools that save to your account, log_bet, settle_bet and save_recommendation, need a token with write access. A read-only token that calls one gets insufficient_scope: HTTP 403 over REST, or an isError result over MCP. The scope is checked before the arguments are. See Tokens and security.
| Tool | Scope | What it does |
|---|---|---|
get_week_slate | read | The games in a date range, soonest first, without prices, each with its kickoff in US Eastern time. By default from the start of this NFL week (Tuesday, Eastern) to 8 days ahead, and at most 14 days. |
get_game_odds | read | One game's moneyline, spread and total at your sportsbook: the chance each price implies, the best price at that line across the books Unitley tracks and among the ones you have accounts at, the no-vig consensus chance and the EV at it, with the price's age. |
get_line_movement | read | How your sportsbook's price and line moved in one market: the first and current price, the longest and shortest, and how many times it moved. |
get_player_props | read | One game's player props at your sportsbook (passing, rushing and receiving yards, anytime touchdown) with the same best price, no-vig chance and EV. In the 24 hours before kickoff a call can refresh them, from a limited quota everyone shares. |
get_team_stats | read | A team's season totals and per-game numbers, by team code (KC, SF). |
get_player_stats | read | A player's season numbers and last few games, by part of a name (up to 10 matches) or by playerId. |
get_injury_report | read | Every player not cleared to play, for one team or the league: game status, practice status and reserve lists. Updated about twice a day, without game-day inactives. |
get_game_weather | read | The forecast over a game: kickoff temperature, wind, gusts, rain and snow, from the National Weather Service or MET Norway, with closed and retractable roofs flagged. No forecast yet for games more than 7 days out. |
get_matchup_report | read | One game's standard report: rest, travel, roof, weather, key injuries and line movement, ordered as key factors. Give it a bet and it adds the no-vig fair odds, the best price, the price edge and a stake within your limits, all worked out by Unitley. |
calc_implied_probability | read | American odds to decimal odds and the chance the price implies, vig included. |
calc_no_vig_odds | read | Takes the margin out of one market: the overround, and each outcome's fair chance and fair odds. |
calc_ev | read | The expected value of a bet at your chance: the edge over the price, EV in dollars and EV per dollar staked. |
calc_kelly_stake | read | A stake sized to your bankroll: your risk profile's fraction of Kelly, held under its cap, your max stake and the room left under your loss limits. |
calc_parlay | read | A parlay of 2 to 25 legs: combined odds and implied chance and, with your chance on every leg, the combined chance and EV. Legs on one game are flagged. |
get_bankroll | read | Your bankroll, unit, risk profile, ROI, profit over the last 24 hours and the last 7 days, max stake, and the room left under each loss limit. |
get_bet_log | read | Your bets, newest first, filtered by date and result, up to 200 at a time with a cursor for the next page. |
log_bet | write | Records a bet you have placed, as pending. A stake past your limits is logged with a warning, not refused. |
settle_bet | write | Sets a bet's result by hand, or reopens it. Moneyline, spread and total bets on games Unitley tracks settle on their own; this is for the rest, and for corrections. |
save_recommendation | write | Saves a pick card to your Overview and Picks page. Unitley works out the implied chance, edge, EV and stake itself, from the price, the chance given and your bankroll, and checks the numbers the answer gave against its own. Without a bankroll set up, the pick is saved with no stake. |
search_knowledge | read | Searches Unitley's own notes on how betting works, best match first, with a title, path and snippet for each. |
jev_classify | read | Answers set questions about text you already have, with Jev on your own TypeSafe key. The answers are unverified context and never about odds; 30 calls every 10 minutes. |
Odds
Prices come from The Odds API. The book shown is your sportsbook (pick it in Settings; FanDuel until you do, and wherever yours has no line), and the best price is checked across every book Unitley tracks and among the books you have accounts at. These tools read Unitley's own copy of the odds, except get_player_props, which can refresh one game's props.
get_week_slate
The games in a date range, soonest first, without prices, each with its kickoff in US Eastern time. By default from the start of this NFL week (Tuesday, Eastern) to 8 days ahead, and at most 14 days.
Changes nothing
Arguments
- sport
- nfl · optional · default "nfl"
- from
- date-time or date · optional
- to
- date-time or date · optional
What agents are told
Games between from and to, soonest first, without prices; by default from this NFL week's Tuesday (Eastern) to 8 days ahead, at most 14 days. For kickoff times, quote display.kickoff; truncated means over 200 games: narrow the range. For a team's next game, pass the team to get_game_odds. Show the attribution.
- Returns
sport,fromandto(the range it used, as timestamps),games,truncatedandattribution. - Leave
fromout and the range starts at the start of the current NFL week: Tuesday at midnight, US Eastern time. Last week's Monday night game is not in it. - Each game has
commenceTime, in UTC, anddisplay.kickoff, the same kickoff in US Eastern time as an agent should quote it, such as"Sun, Oct 11, 1:00 PM ET". A game whose time is not set yet saystime TBD. - A
tobeforefromisinvalid_input. A range longer than 14 days islimit. - There are no prices here. Pass a game's
idtoget_game_oddsfor its lines, or passget_game_oddsa team for its next game.
get_game_odds
One game's moneyline, spread and total at your sportsbook: the chance each price implies, the best price at that line across the books Unitley tracks and among the ones you have accounts at, the no-vig consensus chance and the EV at it, with the price's age.
Changes nothing
Arguments
- sport
- nfl · optional · default "nfl"
- gameId
- uuid · optional
- team
- string · optional
- market
- h2h | spreads | totals · optional
What agents are told
One game's lines at the user's sportsbook (bookmaker; FanDuel where theirs has none) by gameId, or by team for its next game; market (h2h is the moneyline, spreads, totals) for one line. Each outcome has that book's price, the best price across tracked books (bestMine: among the user's own books), the no-vig consensus and the EV: quote the display values. An unpriced market is null. Say how old a line is (updatedAgo), pass priceNote on, and show the attribution.
- Give a
gameId, or ateamfor that team's next game that has not finished, in the next 8 days. Both, or neither, isinvalid_input. - Returns
game,lines,priceNoteandattribution.gameis a game as inget_week_slate, withdisplay.kickoff.linesholdsh2h,spreadsandtotals, or only themarketyou asked for. A market neither your book nor FanDuel prices isnull. - Each line has
market,bookmakerandbookmakerName(the book it is shown at: yours, or FanDuel standing in),fetchedAt,updatedAgo,consensusBooksandoutcomes. Each outcome hasoutcome,side,point,americanOdds,impliedProbability,best,bestMine(only when you have listed the books you have accounts at),fairProbability,fairAmericanOdds,expectedValueanddisplay.impliedProbability,fairProbabilityandexpectedValueare rounded to six decimal places.displayholds the numbers as an agent should quote them:americanOdds,impliedProbability,best(such as"−105 at DraftKings"),bestMine,fairProbability,fairAmericanOddsandexpectedValue(such as"+2.1% per $1"),nullwhere the number is. - An unknown
gameIdisnot_found: "That game was not found." So is a team with no game coming up. - The math behind each outcome: No-vig odds and Expected value.
get_line_movement
How your sportsbook's price and line moved in one market: the first and current price, the longest and shortest, and how many times it moved.
Changes nothing
Arguments
- gameId
- uuid · required
- market
- string · required
What agents are told
How the price get_game_odds or get_player_props shows (each outcome's bookmaker) for one market (h2h, spreads, totals or a prop market) of one game has moved. Per outcome: first and current price and line, longest and shortest price, and move count. truncated means the oldest points were cut, so the first is not the opening line.
- Your sportsbook's history, or FanDuel's where your book has none: the tool takes no bookmaker, and
bookmakerin the answer names the book. - Returns
gameId,market,bookmaker,truncatedandoutcomes. Each outcome hasopenandcurrent(each withobservedAt,americanOddsandpoint),longest,shortestandmoves. - A market with no recorded history returns an empty
outcomeslist. An unknowngameIdisnot_found.
get_player_props
One game's player props at your sportsbook (passing, rushing and receiving yards, anytime touchdown) with the same best price, no-vig chance and EV. In the 24 hours before kickoff a call can refresh them, from a limited quota everyone shares.
Changes nothing · Reaches outside Unitley
Arguments
- gameId
- uuid · required
- player
- string · optional · 2 to 60 characters
- market
- string · optional
What agents are told
The user's sportsbook's player props for one game by gameId, priced as in get_game_odds. Narrow by player (part of a name) and market (such as player_pass_yds); at most 10 come back; total counts the matches. Fetched on request in the 24 hours before kickoff from a shared quota; note says when they were not. Pass note and priceNote on.
- Returns
gameId,fetch,note,props,total,truncatedandpriceNote.fetch.statusisfetched,skipped(with areason) orerror. The props already on file come back either way. - Each prop is a line as in
get_game_odds, with itsplayer. Narrow the list withplayer(part of a name, any case) andmarket. At most 10 props come back:totalcounts the matches among the props loaded, andtruncatedistruewhen some were left out. That includes a game with more than 999 props on file, where only the first 999 are loaded, sototalcan be short of every match. - Props come from a limited odds quota that every Unitley user shares. A game's props are fetched on request: the first call in the 24 hours before kickoff fetches them, and a call in the last 3 hours can refresh them once when the quota allows. Every user then reads that same copy.
noteisnullwhen this call fetched the props. Otherwise it says why they were not fetched or refreshed: props are not offered for the sport yet, it is too early (or the kickoff time is not set), the game has started, the provider has not listed the game, they were already fetched (the note says when they are next refreshed, or that that fetch found none to show), the last fetch found none or failed (it is tried again an hour later), the provider never delivered them and Unitley stopped asking, the quota is being saved for the main lines, props are not set up yet, the odds provider did not answer, or another request is fetching them right now (try again in a moment).- A call that fetches, or waits for another request fetching, can take most of a minute. Give your client a tool-call timeout of at least 60 seconds.
- An unknown
gameIdisnot_found.
Stats and injuries
Season stats, play-by-play efficiency and usage, betting records and injury reports for NFL teams and players. Each result carries an attribution: show it with any numbers you pass on. The Glossary says what each play-by-play stat means.
get_team_stats
A team's season totals and per-game numbers, by team code (KC, SF).
Changes nothing
Arguments
- team
- string · required
- sport
- nfl · optional · default "nfl"
- season
- integer · optional · 1,990 to 2,100
What agents are told
A team's season stats by team code (such as KC): games, season totals and per-game numbers, for the latest season unless season is given. Show the attribution.
- Returns
sport,season,team,games,totals,perGame,perGameWeeks,sourceUpdatedAt,fetchedAt,updatedAgo,advanced,trends,notesandattribution. advancedranks the team's play-by-play stats against the league's in each split (see Ranks, splits and edges). It hasgamesThrough, the date of the latest game counted, the team'srecord, alegendsaying how the ranks read, theleagueAverageof each stat, andsplits. Each split has itsgames,teamsRanked,offense,defense,tendenciesandturnoverMargin, or isnullwhen the team has no games in it.advancedisnullwhen no play-by-play is on file for the team that season, or it couldn't be loaded.trendsholds the team's records against the spread (ats) and on the total (overUnder), each with itsgames, its start date (since) and adisplay. It isnullfor a season before the records start (2026-10-10), or when they couldn't be loaded. See Against the spread, over/under.- Pass on
notes: they say how the records are graded and when part of the answer is missing. - A team or season with nothing on file is
not_found.
get_player_stats
A player's season numbers and last few games, by part of a name (up to 10 matches) or by playerId.
Changes nothing
Arguments
- sport
- nfl · optional · default "nfl"
- name
- string · optional · 2 to 60 characters
- playerId
- string · optional
- season
- integer · optional · 1,990 to 2,100
What agents are told
Players' season stats by name (any part: 'mahomes') or playerId: season totals and recent games. Up to 10 matches, newest season first unless season is given; if a name matches several, ask which or pass the playerId. Show the attribution.
- Returns
players(each with season totals,recent, the last few games, andusage),notesandattribution. usagehas one entry per team the player played for that season, the team they're listed with first. Each has itsgamesand the player'sreceiving(targets, air yards, their shares, EPA per target and red-zone targets),rushing(carries, rush share, EPA per carry and red-zone carries) andpassing(dropbacks, dropback share, EPA per dropback and CPOE). A part isnullwhen the player had none of those plays. See Player usage.usageis an empty list when no play-by-play game is on file for the player, andnullwhen it couldn't be loaded.- Give a
name(2 to 60 characters) or aplayerId. Neither isinvalid_input: "Give a player's name or id." - A name that matches no one returns an empty
playerslist, not an error.
get_injury_report
Every player not cleared to play, for one team or the league: game status, practice status and reserve lists. Updated about twice a day, without game-day inactives.
Changes nothing
Arguments
- sport
- nfl · optional · default "nfl"
- team
- string · optional
What agents are told
The current injury report for one team by team code, or the league (first 40 entries in team order: ask by team): each player not cleared to play. A team whose season is over is left out, so an empty list is not a clean bill of health. It can lag the news and misses game-day inactives: pass the note on, and show the attribution.
- Returns
sport,team,injuries(each withteam,player,position,status,detailandreportedAt),total,truncated,fetchedAt,updatedAgo,noteandattribution. - A team's list comes back whole. The league-wide list is cut to the first 40 entries, in team order:
totalcounts them all,truncatedistrueandnotesays so. Ask by team for a full list. noteis always there. It says how often the report updates, that it has no game-day inactives, and why a team's list is empty when its season is over.
Weather
The forecast over a game's window, from the venue's location.
get_game_weather
The forecast over a game: kickoff temperature, wind, gusts, rain and snow, from the National Weather Service or MET Norway, with closed and retractable roofs flagged. No forecast yet for games more than 7 days out.
Changes nothing
Arguments
- gameId
- uuid · required
What agents are told
One game's forecast by gameId: kickoff temperature, wind, gusts, rain and snow. Says when the roof is closed (weather does not matter) or retractable, and when no forecast is out yet (over 7 days ahead). Show the attribution.
- Returns
gameId,sport,kickoff,venue,status,forecast,roofNote,noteandattribution. statusisindoor(a closed roof),forecastornot_available. Withnot_available,notesays why. Forecasts are kept for games up to 7 days out and refreshed every 3 hours.forecast.staleis true when the kickoff time changed after the forecast was taken.- An unknown
gameIdisnot_found.
Matchup report
One game's odds, play-by-play efficiency, betting records, injuries, weather, rest and travel in one standard report, so every client explains the same numbers.
get_matchup_report
One game's standard report: rest, travel, roof, weather, key injuries and line movement, ordered as key factors. Give it a bet and it adds the no-vig fair odds, the best price, the price edge and a stake within your limits, all worked out by Unitley.
Changes nothing
Arguments
- gameId
- uuid · required
- bet
- object · optional
- full
- boolean · optional
What agents are told
One game's standard report, the same in every client: efficiency ranks and edges, ATS and over/under records, rest, travel, weather, key injuries and line movement; give bet for fair odds, best price, price edge and a stake within the user's limits, and full for player usage. Build your answer around keyFactors, in order; quote their display values. Pass notes on and show the attribution.
- Returns
game,asOf,bet,context,analysis,lineMovement,efficiency,trends,injuries,weather,usage,keyFactors,risks,notesandattribution. betis a main market and a side:awayorhomeforh2handspreads,overorunderfortotals. Without it,analysisisnulland the report follows the home spread and the over.full: trueaddsusage, each team's top receivers, rushers and passers this season, and lists every last-3-games stat rather than only those that moved. Without it,usageisnull.keyFactorslists the facts to build an answer around, in order, each with akindand adisplayto quote. The kinds areprice,edge,strength,form,tendency,movement,injuries,weather,turnoversandcontext.efficiencyranks both teams' play-by-play stats against the league's, from the games before this one (gamesThroughis the latest counted). Each team has itsrecord,games,offense,defense,tendencies,turnoverMarginandlast3: the stats whose last-3-games rank is 8 or more places from the season's, ornullfor a team with 3 games or fewer.matchupspairs each offense with the other team's defense, with the rankgapsand theedges: stats where the offense ranks 12 or more places better. See Ranks, splits and edges.efficiencyisnullwhen no play-by-play is on file for these teams this season, with a note.trendsholds each team's records against the spread and on the total, as in get_team_stats.- Each
keyinjury also gives the player'susage, their role from play-by-play, such as"17.9% target share". The injuries key factor names the quarterbacks and the players with 10% or more of their team's targets or 25% or more of its carries, and those players stay inkeyhowever long the list. - Stats from the NFL's player tracking, such as pass-rush win rate or receiver separation, aren't in the report: see What Unitley doesn't have.
analysishas the bet's price at your sportsbook (bookmaker; FanDuel's stands in where yours has no line), the no-vigfairProbabilityandfairAmericanOddsofconsensusBooksbooks, thebestprice at that line andpriceEdge: the EV per $1 of the best price at the no-vig chance.bestis the best among your books when you've set them and one has the line (best.amongYourBooksis true), else across all.analysis.stakeis the Kelly stake at the no-vig chance, within your risk profile's cap, your max stake and the room left under your loss limits. It's sized at the best price when that's at one of your books, else at thebookmakerprice, anddisplay.stake.pricenames the price and book, such as"−110 at FanDuel". Without a bankroll or a no-vig price,stakeisnullandstakeNotesays why.- A report is kept for 5 minutes for each user, game, bet,
fullor not and set of your books, so your clients asking about the same bet at about the same time usually get the same one, built atasOf.gameis as it was then and has noupdatedAgo.analysis,injuriesandweathereach say how old they are (weather.updatedAgoisnullwhen there's no forecast, such as under a closed roof), and the stake follows your bankroll on every read. injuries.teamsgives each team's out, doubtful and questionable counts and itskeyinjuries. A team whose list isn't shown hasshown: falseandnullcounts andkey, andnotessays why. Final, canceled and postponed games leave the lists out:injuriesisnull, with a note.- An unknown
gameIdisnot_found.
Betting math
Calculators that need no data. Out-of-range input, such as American odds between −100 and +100, is invalid_input. Each entry in issues has the field's path and a message. calc_kelly_stake also reads your bankroll.
Each result also has display: its numbers as strings, rounded the way the console shows them, such as "52.4%", "−110" or "−$5.82 per $100". The raw numbers are not rounded. An agent should quote the display values.
calc_implied_probability
American odds to decimal odds and the chance the price implies, vig included.
Changes nothing
Arguments
- americanOdds
- integer · required · -100,000 to 1,000,000
What agents are told
Converts American odds to decimal odds and the win probability the price implies, vig included.
- Returns
americanOdds,decimalOddsandimpliedProbability. - See Implied probability.
calc_no_vig_odds
Takes the margin out of one market: the overround, and each outcome's fair chance and fair odds.
Changes nothing
Arguments
- prices
- integer[] · required · 2 to 20 items
- method
- multiplicative | power · optional · default "multiplicative"
What agents are told
Removes the bookmaker's margin from one market: pass every outcome's American price in it (both sides, or three with a draw). Returns the overround and each outcome's fair probability and fair odds.
- Returns
method,overroundandoutcomes. Each outcome hasamericanOdds,impliedProbability,fairProbability,fairDecimalOddsandfairAmericanOdds. - See No-vig odds.
calc_ev
The expected value of a bet at your chance: the edge over the price, EV in dollars and EV per dollar staked.
Changes nothing
Arguments
- probability
- number · required · 0 to 1
- americanOdds
- integer · required · -100,000 to 1,000,000
- stake
- number · optional · default 100 · 0 to 10,000,000
- fairProbability
- number · optional · 0 to 1
What agents are told
Expected value of a bet at American odds for your win probability (0 to 1): the edge over the implied probability, and the EV in dollars for the stake and per dollar staked. Quote the display values; never work EV out yourself. Give fairProbability (no-vig) when known; pass any probabilityWarning on.
- Returns
probability,americanOdds,decimalOdds,impliedProbability,edge,stake,expectedValue,expectedValuePercentandprobabilityWarning. fairProbabilityis optional: the outcome's no-vig chance fromget_game_odds. Give it andprobabilityWarningchecks yourprobabilityagainst it. Leave it out and the check is againstimpliedProbability, which still has the vig in it.probabilityWarningisnullunless yourprobabilityis 5 or more points above the market's chance. Then it haslevel(gentle, orstrongat 10 points or more),gap(as a share),against(fairorimplied) andmessage, which an agent should pass on to you. A gap that large is more often a wrong estimate than an edge.- See Expected value.
calc_kelly_stake
A stake sized to your bankroll: your risk profile's fraction of Kelly, held under its cap, your max stake and the room left under your loss limits.
Changes nothing
Arguments
- probability
- number · required · 0 to 1
- americanOdds
- integer · required · -100,000 to 1,000,000
- fairProbability
- number · optional · 0 to 1
What agents are told
Suggested stake sized to the user's bankroll: their risk profile's fraction of Kelly, held under its cap, their max stake and the room under their loss limits; appliedCaps says which held it. Needs a bankroll set up. Give fairProbability as for calc_ev; pass any probabilityWarning on.
- Returns
stake,kellyShare,bankroll,appliedCaps,riskProfile,kellyLabelandprobabilityWarning, which works as incalc_ev, from the same optionalfairProbability. displayhasstake,bankrollandshareOfBankroll, the stake's share after every cap.kellyShareis the share before the max stake and loss limits, so it has no display value.appliedCapslists what held the stake down:profile_cap,max_stake,daily_loss_limit,weekly_loss_limit,no_edgeorbankroll_empty.- With no bankroll set up, it is
not_found: "Set up your bankroll first (Settings → Bankroll), then Unitley can size stakes." See Kelly and stake caps.
calc_parlay
A parlay of 2 to 25 legs: combined odds and implied chance and, with your chance on every leg, the combined chance and EV. Legs on one game are flagged.
Changes nothing
Arguments
- legs
- object[] · required · 2 to 25 itemsEach item:
americanOdds(required);probability,gameId,label(optional).
What agents are told
Combined odds of a parlay of 2 to 25 legs: decimal and American odds and implied probability, plus the combined probability and EV when every leg has your win probability. Legs on one game get a correlation warning: their combined chance is unreliable.
- Returns
legs,decimalOdds,americanOdds,impliedProbability,combinedProbability,expectedValuePercentandcorrelationWarnings. combinedProbabilityandexpectedValuePercentarenullunless every leg has aprobability.- Two or more legs with the same
gameIdget a warning that names them, since legs on one game are not independent.
Bankroll and bets
Your own bankroll and bet log. These tools act only on the account the token belongs to.
get_bankroll
Your bankroll, unit, risk profile, ROI, profit over the last 24 hours and the last 7 days, max stake, and the room left under each loss limit.
Changes nothing
Arguments
Takes no arguments.
What agents are told
The user's bankroll: amount, unit size, risk profile, ROI and profit, max stake and loss limits. room.daily and room.weekly are how much more they can lose, open stakes included. Keep every suggested stake within the max stake and the room. Says so when none is set up.
- With no bankroll set up, it returns
status: "not_set_up"and amessage, not an error. - Otherwise
statusisready, with the amounts,unitSize,roiandroom(dailyandweekly). See Bankroll and risk profiles. - Each
roomis how much more can be lost in that loss limit's window, counting open bets as lost, ornullwith no limit. It caps a stake; it doesn't set any of the bankroll aside.
get_bet_log
Your bets, newest first, filtered by date and result, up to 200 at a time with a cursor for the next page.
Changes nothing
Arguments
- from
- date-time or date · optional
- to
- date-time or date · optional
- result
- pending | won | lost | push | void · optional
- limit
- integer · optional · default 20 · 1 to 200
- cursor
- string · optional · up to 200 characters
What agents are told
The user's logged bets, newest first: selection, market, price, stake, result and profit; parlays with their legs. Pass nextCursor back as cursor for more.
- Returns
betsandnextCursor. Each bet hasid,sport,gameId,placedAt,bookmaker,market,selection,side,point,americanOdds,stake,result,profit(nullwhile pending),settledAt,recommendationId,notes,sameGame,payoutOdds,payoutNeedsConfirmandlegs. - A parlay's
legs(nullon other bets) each haveposition(1 is first),gameId,market,selection,side,point,americanOdds(nullwhen not given),playerandpropMarket(prop legs only),result,settledAtandsettledBy.payoutOddsis what a won parlay paid after push or void legs dropped out, andpayoutNeedsConfirmistrueuntil the user confirms it: on a same-game parlay, or when a won leg has no odds. See Parlays. - A page holds up to
limitbets, 20 by default. A page of long bets (notes, parlay legs) stops short at about 12,000 characters, andnextCursorthen picks up after the last bet shown.nextCursorisnullon the last page.
log_bet
Records a bet you have placed, as pending. A stake past your limits is logged with a warning, not refused.
Adds new data
Arguments
- market
- h2h | spreads | totals | player_prop | parlay | other · required
- selection
- string · required · up to 200 characters
- americanOdds
- integer · required · -100,000 to 1,000,000
- stake
- number · required · above 0, up to 10,000,000
- sport
- nfl · optional · default "nfl"
- gameId
- uuid · optional · or null
- placedAt
- date-time · optional
- bookmaker
- string · optional
- side
- home | away | over | under | draw · optional · or null
- point
- number · optional · -999 to 999 · or null
- recommendationId
- uuid · optional · or null
- notes
- string · optional · up to 1,000 characters · or null
- legs
- object[] · optional · 2 to 25 items · or nullEach item:
selection(required);americanOdds,gameId,market,side,point,player,propMarket(optional). - sameGame
- boolean · optional
What agents are told
Logs a bet the user says they placed, as pending; never log one on your own. stake is in dollars; recommendationId is the saved card the bet follows. For a parlay, americanOdds is the whole ticket's price and legs its picks (a prop leg's player and propMarket as get_player_props gives them); sameGame marks an SGP. A stake past the max stake or a loss limit gets a warning, not a refusal: pass every warning on.
- Needs a token with write access.
- Returns
betandwarnings. Each warning has acode(max_stake,daily_loss_limitorweekly_loss_limit) and amessage. The loss-limit room counts your open bets. - A
placedAtmore than 5 minutes in the future isinvalid_input: "A bet cannot be placed in the future."legsare for a parlay only, 2 to 25 of them. - A parlay's
americanOddsis the whole ticket's price. Each leg takes aselection, and optionally itsamericanOdds,gameId,market(otherwhen not given),sideandpoint; aplayer_propleg also takesplayerandpropMarket. A parlay's games, sides and lines go on its legs, not on the bet.sameGameis set on its own when two legs share a game, and can be passed for one Unitley can't tell. - An unknown
gameIdorrecommendationIdisnot_found; for the game,issueshas one entry ongameId, or one onlegs.N.gameIdfor each leg whose game is unknown, counted from 0 (legs.0.gameIdis the first leg's). AgameIdin a different sport fromsportisinvalid_input, also marked on thatgameId(one entry per leg in another sport, reported once every leg's game is found): "That game is in another sport. Pass the game's sport, or leave the game out." - An account holds up to 10,000 bets, and past that it is
limit: "You can log up to 10,000 bets. Delete ones you no longer need on the Bet Log page, then try again."
settle_bet
Sets a bet's result by hand, or reopens it. Moneyline, spread and total bets on games Unitley tracks settle on their own; this is for the rest, and for corrections.
Updates saved data · Safe to repeat
Arguments
- betId
- uuid · required
- result
- pending | won | lost | push | void · required
- leg
- integer · optional · 1 to 25
- payoutOdds
- integer · optional · -100,000 to 1,000,000
What agents are told
Sets a bet's result by hand (pending reopens it), only when the user asks. Moneyline, spread and total bets and legs on tracked games settle on their own; use this for the rest, or a correction. leg: one parlay leg (1 is first). payoutOdds: what a won parlay paid after push or void legs.
- Needs a token with write access.
- Offered over MCP and the REST API only. In the console, you settle a bet on the Bet Log page.
- Moneyline, spread and total bets on games Unitley tracks settle on their own after the final score, with
settledByauto. A canceled game voids them. A parlay's linked moneyline, spread and total legs settle the same way, and the parlay settles from its legs.settle_betis for the rest (props, prop legs and bets not tied to a game), or to correct a result. - Returns the bet, with
settledAtset to now andsettledByuser.pendingreopens a settled bet and clears both. An unknownbetIdisnot_found: "That bet was not found." legsettles one leg of a parlay (1 is first), and the parlay's result follows from its legs. A leg the parlay doesn't have isnot_found: "That parlay has no leg N."payoutOddsgoes withwonon a whole parlay: the price the book paid after push or void legs dropped out. It confirms the payout and clearspayoutNeedsConfirm.
Picks
Saved pick cards, the ones you see on the Picks page.
save_recommendation
Saves a pick card to your Overview and Picks page. Unitley works out the implied chance, edge, EV and stake itself, from the price, the chance given and your bankroll, and checks the numbers the answer gave against its own. Without a bankroll set up, the pick is saved with no stake.
Adds new data
Arguments
- market
- h2h | spreads | totals | player_prop | parlay | other · required
- pick
- string · required · up to 200 characters
- americanOdds
- integer · required · -100,000 to 1,000,000
- modelProbability
- number · required · 0 to 1
- confidence
- low | medium | high · required
- sport
- nfl · optional · default "nfl"
- gameId
- uuid · optional · or null
- side
- home | away | over | under | draw · optional · or null
- point
- number · optional · -999 to 999 · or null
- player
- string · optional · 2 to 60 characters · or null
- propMarket
- string · optional · or null
- bookmaker
- string · optional
- oddsSource
- odds_api | user · optional · default "user"
- oddsAsOf
- date-time · optional · or null
- otherOutcomeOdds
- integer[] · optional · 1 to 19 items · or null
- stated
- object · optional · or null
- verdict
- bet | pass · optional · default "bet"
- why
- string[] · optional · default [] · up to 10 items
- risks
- string[] · optional · default [] · up to 10 items
- sources
- object[] · optional · up to 10 itemsEach item:
url(required);title(optional).
What agents are told
Saves a pick the user asks to keep, as a card. pick is the bet (such as 'KC -3'), modelProbability your win chance (0 to 1). For a price from get_game_odds or get_player_props, pass oddsSource odds_api and oddsAsOf its fetchedAt. Pass otherOutcomeOdds and stated (your answer's numbers, as shares), and for a prop its player and propMarket. Unitley works out the numbers itself and returns numberCheck: quote its display values, correct any it flags, and never work them out yourself. A pick called positive EV whose EV is not positive is refused. verdict pass keeps a pick you advised against, with no stake. Pass any stakeNote or probabilityWarning on.
- Needs a token with write access.
- Unitley works out the implied probability, edge, EV and stake itself. Any stake or edge sent with the card is ignored. The card records where it came from (MCP or the REST API) and your client's name.
- Send the numbers your answer gave the user in
stated, and the other outcomes' prices at the same book inotherOutcomeOddsso the no-vig price can be checked too. Unitley checks each stated number against its own, half a percentage point apart at most, and returnsnumberCheck: Unitley's numbers inunitley, and indisplayas an agent should quote them. A card whose stated numbers were wrong is still saved, with Unitley's numbers and a note on the card saying the analysis had them wrong. - The no-vig price is checked against the same consensus get_game_odds or get_player_props gives, when Unitley has the pick's line. A no-vig price worked out from the card's own book's prices passes too. The card records which one it holds:
fairMethodisconsensus(withfairBooks, the number of books) orsingle_book. For a prop, sendplayerandpropMarket(such asplayer_pass_yds) as get_player_props gave them; without them a prop is checked against its own book's prices only. - If Unitley's odds can't be read during the save, the pick is still saved, with
numberCheck.oddsUnavailableset totrue. Its no-vig price is checked against the card's own book's prices fromotherOutcomeOdds, if you sent them, and the card says it wasn't checked against the consensus. - Send
verdict: "pass"for a pick you advised against that the user still wants kept. It is saved with thepassstatus and no stake (stakeCapsispass), apart from the open picks, and stays a pass. - A pick called positive EV (in
stated,pickorwhy) when Unitley's EV for it is zero or below is not saved: it isinvalid_input, with Unitley's numbers in the message. whyandriskstake up to 10 lines each, of up to 400 characters, and each list stays under 4,000 bytes in all. No outside source is on the allowed list yet, so a link insourcesisinvalid_input.- With no bankroll set up, the pick is still saved, with no stake:
suggestedStakeis 0 andstakeCapsisno_bankroll. The answer'sstakeNotesays so, for your agent to pass on, and the card links to the Bankroll page. OtherwisestakeNoteisnull. - The answer's
probabilityWarningworks as incalc_ev, against the no-vig chance innumberCheck, and isnullwhenmodelProbabilityis less than 5 points above it. The card shows the same warning, a stronger one at 10 points or more. A pass gets it too. - An account holds up to 5,000 saved recommendations, and past that it is
limit. Delete old ones on the Picks page.
Knowledge
Unitley's own notes on how betting works. The same notes are MCP resources.
search_knowledge
Searches Unitley's own notes on how betting works, best match first, with a title, path and snippet for each.
Changes nothing
Arguments
- query
- string · required · 2 to 200 characters
- sport
- nfl · optional · default "nfl"
- limit
- integer · optional · default 5 · 1 to 20
What agents are told
Searches Unitley's betting notes on concepts and methods, best match first. For how betting works only: current odds, stats, injuries and weather come from the other tools.
- Returns
results, each withtitle,path,sport,snippetandscore. - Over MCP, you can also read a whole note as a resource. See Resources.
Research
Optional tools that run on a key you add yourself.
jev_classify
Answers set questions about text you already have, with Jev on your own TypeSafe key. The answers are unverified context and never about odds; 30 calls every 10 minutes.
Changes nothing · Reaches outside Unitley
Arguments
- text
- string · required · up to 20,000 characters
- sourceUrl
- string · required · up to 2,048 characters
- questions
- object[] · required · 1 to 10 items · each one of: yes_no, choice, scoreEach item:
type,id,question(required);yesMeans,noMeans,options,levels(optional).
What agents are told
Answers set questions about text you already have with Jev, on the user's own TypeSafe key. Pass the text, sourceUrl (never a social media or sportsbook site) and up to 10 questions: yes_no, choice or score (levels lowest first). Label the answers unverified context. Never ask about odds or prices. Limited to 30 calls every 10 minutes.
- Runs on your own TypeSafe key, added under Settings → AI providers. With no key saved, it is
unavailable. TypeSafe bills that key for each call. - Limited to 30 every 10 minutes per user, on top of the other rate limits. A call with invalid input, or with no key saved, does not spend that budget.
- Returns
untrusted,notice,source,model,answersandinputTokens. The answers are what the text claims, not checked facts. See Jev.