Skip to content
DocsUnitley Docs home
MCP reference

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, POST the 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.

ToolScopeWhat it does
get_week_slatereadThe 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_oddsreadOne 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_movementreadHow 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_propsreadOne 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_statsreadA team's season totals and per-game numbers, by team code (KC, SF).
get_player_statsreadA player's season numbers and last few games, by part of a name (up to 10 matches) or by playerId.
get_injury_reportreadEvery 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_weatherreadThe 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_reportreadOne 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_probabilityreadAmerican odds to decimal odds and the chance the price implies, vig included.
calc_no_vig_oddsreadTakes the margin out of one market: the overround, and each outcome's fair chance and fair odds.
calc_evreadThe expected value of a bet at your chance: the edge over the price, EV in dollars and EV per dollar staked.
calc_kelly_stakereadA 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_parlayreadA 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_bankrollreadYour 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_logreadYour bets, newest first, filtered by date and result, up to 200 at a time with a cursor for the next page.
log_betwriteRecords a bet you have placed, as pending. A stake past your limits is logged with a warning, not refused.
settle_betwriteSets 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_recommendationwriteSaves 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_knowledgereadSearches Unitley's own notes on how betting works, best match first, with a title, path and snippet for each.
jev_classifyreadAnswers 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

Game scheduleRead

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, from and to (the range it used, as timestamps), games, truncated and attribution.
  • Leave from out 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, and display.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 says time TBD.
  • A to before from is invalid_input. A range longer than 14 days is limit.
  • There are no prices here. Pass a game's id to get_game_odds for its lines, or pass get_game_odds a team for its next game.

get_game_odds

Game oddsRead

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 a team for that team's next game that has not finished, in the next 8 days. Both, or neither, is invalid_input.
  • Returns game, lines, priceNote and attribution. game is a game as in get_week_slate, with display.kickoff. lines holds h2h, spreads and totals, or only the market you asked for. A market neither your book nor FanDuel prices is null.
  • Each line has market, bookmaker and bookmakerName (the book it is shown at: yours, or FanDuel standing in), fetchedAt, updatedAgo, consensusBooks and outcomes. Each outcome has outcome, side, point, americanOdds, impliedProbability, best, bestMine (only when you have listed the books you have accounts at), fairProbability, fairAmericanOdds, expectedValue and display. impliedProbability, fairProbability and expectedValue are rounded to six decimal places. display holds the numbers as an agent should quote them: americanOdds, impliedProbability, best (such as "−105 at DraftKings"), bestMine, fairProbability, fairAmericanOdds and expectedValue (such as "+2.1% per $1"), null where the number is.
  • An unknown gameId is not_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

Line movementRead

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 bookmaker in the answer names the book.
  • Returns gameId, market, bookmaker, truncated and outcomes. Each outcome has open and current (each with observedAt, americanOdds and point), longest, shortest and moves.
  • A market with no recorded history returns an empty outcomes list. An unknown gameId is not_found.

get_player_props

Player propsRead

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, truncated and priceNote. fetch.status is fetched, skipped (with a reason) or error. The props already on file come back either way.
  • Each prop is a line as in get_game_odds, with its player. Narrow the list with player (part of a name, any case) and market. At most 10 props come back: total counts the matches among the props loaded, and truncated is true when some were left out. That includes a game with more than 999 props on file, where only the first 999 are loaded, so total can 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.
  • note is null when 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 gameId is not_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

Team statsRead

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, notes and attribution.
  • advanced ranks the team's play-by-play stats against the league's in each split (see Ranks, splits and edges). It has gamesThrough, the date of the latest game counted, the team's record, a legend saying how the ranks read, the leagueAverage of each stat, and splits. Each split has its games, teamsRanked, offense, defense, tendencies and turnoverMargin, or is null when the team has no games in it. advanced is null when no play-by-play is on file for the team that season, or it couldn't be loaded.
  • trends holds the team's records against the spread (ats) and on the total (overUnder), each with its games, its start date (since) and a display. It is null for 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

Player statsRead

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, and usage), notes and attribution.
  • usage has one entry per team the player played for that season, the team they're listed with first. Each has its games and the player's receiving (targets, air yards, their shares, EPA per target and red-zone targets), rushing (carries, rush share, EPA per carry and red-zone carries) and passing (dropbacks, dropback share, EPA per dropback and CPOE). A part is null when the player had none of those plays. See Player usage. usage is an empty list when no play-by-play game is on file for the player, and null when it couldn't be loaded.
  • Give a name (2 to 60 characters) or a playerId. Neither is invalid_input: "Give a player's name or id."
  • A name that matches no one returns an empty players list, not an error.

get_injury_report

Injury reportRead

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 with team, player, position, status, detail and reportedAt), total, truncated, fetchedAt, updatedAgo, note and attribution.
  • A team's list comes back whole. The league-wide list is cut to the first 40 entries, in team order: total counts them all, truncated is true and note says so. Ask by team for a full list.
  • note is 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

Game weatherRead

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, note and attribution.
  • status is indoor (a closed roof), forecast or not_available. With not_available, note says why. Forecasts are kept for games up to 7 days out and refreshed every 3 hours.
  • forecast.stale is true when the kickoff time changed after the forecast was taken.
  • An unknown gameId is not_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

Matchup reportRead

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, notes and attribution.
  • bet is a main market and a side: away or home for h2h and spreads, over or under for totals. Without it, analysis is null and the report follows the home spread and the over.
  • full: true adds usage, 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, usage is null.
  • keyFactors lists the facts to build an answer around, in order, each with a kind and a display to quote. The kinds are price, edge, strength, form, tendency, movement, injuries, weather, turnovers and context.
  • efficiency ranks both teams' play-by-play stats against the league's, from the games before this one (gamesThrough is the latest counted). Each team has its record, games, offense, defense, tendencies, turnoverMargin and last3: the stats whose last-3-games rank is 8 or more places from the season's, or null for a team with 3 games or fewer. matchups pairs each offense with the other team's defense, with the rank gaps and the edges: stats where the offense ranks 12 or more places better. See Ranks, splits and edges. efficiency is null when no play-by-play is on file for these teams this season, with a note.
  • trends holds each team's records against the spread and on the total, as in get_team_stats.
  • Each key injury also gives the player's usage, 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 in key however 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.
  • analysis has the bet's price at your sportsbook (bookmaker; FanDuel's stands in where yours has no line), the no-vig fairProbability and fairAmericanOdds of consensusBooks books, the best price at that line and priceEdge: the EV per $1 of the best price at the no-vig chance. best is the best among your books when you've set them and one has the line (best.amongYourBooks is true), else across all.
  • analysis.stake is 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 the bookmaker price, and display.stake.price names the price and book, such as "−110 at FanDuel". Without a bankroll or a no-vig price, stake is null and stakeNote says why.
  • A report is kept for 5 minutes for each user, game, bet, full or 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 at asOf. game is as it was then and has no updatedAgo. analysis, injuries and weather each say how old they are (weather.updatedAgo is null when there's no forecast, such as under a closed roof), and the stake follows your bankroll on every read.
  • injuries.teams gives each team's out, doubtful and questionable counts and its key injuries. A team whose list isn't shown has shown: false and null counts and key, and notes says why. Final, canceled and postponed games leave the lists out: injuries is null, with a note.
  • An unknown gameId is not_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

Implied probabilityRead

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.

calc_no_vig_odds

No-vig fair oddsRead

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, overround and outcomes. Each outcome has americanOdds, impliedProbability, fairProbability, fairDecimalOdds and fairAmericanOdds.
  • See No-vig odds.

calc_ev

Expected valueRead

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, expectedValuePercent and probabilityWarning.
  • fairProbability is optional: the outcome's no-vig chance from get_game_odds. Give it and probabilityWarning checks your probability against it. Leave it out and the check is against impliedProbability, which still has the vig in it.
  • probabilityWarning is null unless your probability is 5 or more points above the market's chance. Then it has level (gentle, or strong at 10 points or more), gap (as a share), against (fair or implied) and message, 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

Suggested stakeRead

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, kellyLabel and probabilityWarning, which works as in calc_ev, from the same optional fairProbability.
  • display has stake, bankroll and shareOfBankroll, the stake's share after every cap. kellyShare is the share before the max stake and loss limits, so it has no display value.
  • appliedCaps lists what held the stake down: profile_cap, max_stake, daily_loss_limit, weekly_loss_limit, no_edge or bankroll_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

Parlay oddsRead

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, expectedValuePercent and correlationWarnings.
  • combinedProbability and expectedValuePercent are null unless every leg has a probability.
  • Two or more legs with the same gameId get 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

BankrollRead

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 a message, not an error.
  • Otherwise status is ready, with the amounts, unitSize, roi and room (daily and weekly). See Bankroll and risk profiles.
  • Each room is how much more can be lost in that loss limit's window, counting open bets as lost, or null with no limit. It caps a stake; it doesn't set any of the bankroll aside.

get_bet_log

Bet logRead

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 bets and nextCursor. Each bet has id, sport, gameId, placedAt, bookmaker, market, selection, side, point, americanOdds, stake, result, profit (null while pending), settledAt, recommendationId, notes, sameGame, payoutOdds, payoutNeedsConfirm and legs.
  • A parlay's legs (null on other bets) each have position (1 is first), gameId, market, selection, side, point, americanOdds (null when not given), player and propMarket (prop legs only), result, settledAt and settledBy. payoutOdds is what a won parlay paid after push or void legs dropped out, and payoutNeedsConfirm is true until the user confirms it: on a same-game parlay, or when a won leg has no odds. See Parlays.
  • A page holds up to limit bets, 20 by default. A page of long bets (notes, parlay legs) stops short at about 12,000 characters, and nextCursor then picks up after the last bet shown. nextCursor is null on the last page.

log_bet

Log a betNeeds write

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 bet and warnings. Each warning has a code (max_stake, daily_loss_limit or weekly_loss_limit) and a message. The loss-limit room counts your open bets.
  • A placedAt more than 5 minutes in the future is invalid_input: "A bet cannot be placed in the future." legs are for a parlay only, 2 to 25 of them.
  • A parlay's americanOdds is the whole ticket's price. Each leg takes a selection, and optionally its americanOdds, gameId, market (other when not given), side and point; a player_prop leg also takes player and propMarket. A parlay's games, sides and lines go on its legs, not on the bet. sameGame is set on its own when two legs share a game, and can be passed for one Unitley can't tell.
  • An unknown gameId or recommendationId is not_found; for the game, issues has one entry on gameId, or one on legs.N.gameId for each leg whose game is unknown, counted from 0 (legs.0.gameId is the first leg's). A gameId in a different sport from sport is invalid_input, also marked on that gameId (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

Settle a betNeeds writeNot in the web analyst

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 settledBy auto. 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_bet is for the rest (props, prop legs and bets not tied to a game), or to correct a result.
  • Returns the bet, with settledAt set to now and settledBy user. pending reopens a settled bet and clears both. An unknown betId is not_found: "That bet was not found."
  • leg settles one leg of a parlay (1 is first), and the parlay's result follows from its legs. A leg the parlay doesn't have is not_found: "That parlay has no leg N."
  • payoutOdds goes with won on a whole parlay: the price the book paid after push or void legs dropped out. It confirms the payout and clears payoutNeedsConfirm.

Picks

Saved pick cards, the ones you see on the Picks page.

save_recommendation

Save a recommendationNeeds 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.

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 in otherOutcomeOdds so the no-vig price can be checked too. Unitley checks each stated number against its own, half a percentage point apart at most, and returns numberCheck: Unitley's numbers in unitley, and in display as 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: fairMethod is consensus (with fairBooks, the number of books) or single_book. For a prop, send player and propMarket (such as player_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.oddsUnavailable set to true. Its no-vig price is checked against the card's own book's prices from otherOutcomeOdds, 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 the pass status and no stake (stakeCaps is pass), apart from the open picks, and stays a pass.
  • A pick called positive EV (in stated, pick or why) when Unitley's EV for it is zero or below is not saved: it is invalid_input, with Unitley's numbers in the message.
  • why and risks take 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 in sources is invalid_input.
  • With no bankroll set up, the pick is still saved, with no stake: suggestedStake is 0 and stakeCaps is no_bankroll. The answer's stakeNote says so, for your agent to pass on, and the card links to the Bankroll page. Otherwise stakeNote is null.
  • The answer's probabilityWarning works as in calc_ev, against the no-vig chance in numberCheck, and is null when modelProbability is 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

Search Unitley's notesRead

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 with title, path, sport, snippet and score.
  • 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

Classify text with JevRead

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, answers and inputTokens. The answers are what the text claims, not checked facts. See Jev.

21+ · Gambling problem? Call 1-800-GAMBLER or visit ncpgambling.org

Unitley is an analysis tool, not a sportsbook: it takes no bets and holds no money. Nothing in these docs is a guarantee or financial advice. Only bet where it is legal for you. Unitley is not affiliated with the NFL, its teams, or any sportsbook.

©︎ 2026 Praxys Solutions LLC · Analysis, not a guarantee.