Skip to main content
Glama

Fair Line: NFL bet pricing and angle backtests

Is this betting angle real or noise? Backtest a trend against the spread since 1999

backtest_angle
Read-onlyIdempotent

Backtests a betting angle or trend on every NFL game since 1999 against the closing number: record, win rate with a 95% interval, the exact chance a coin flip does as well, how it did in the last five seasons held out, season by season, and what the best of 20 random angles looks like at that sample, so a lucky trend is called noise. Filters: team, opponent, home/away, favorite/underdog, line range, total range, off a bye, opponent off a bye, short week, rest edge, division, prime time, weekday, Thanksgiving, week range, playoffs, dome/outdoors, temperature, wind, time zones travelled, miles, after a win/loss/blowout, referee. Bet against the spread, moneyline, over or under. For 'home dogs after a bye, real or noise', 'big road favourites off a loss', 'how do teams do on a short week', 'Thanksgiving road teams ATS'. Pass angles_tried if several angles were looked at, to correct for the search.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "backtest_angle"
  }
}

Input Schema

NameRequiredDescriptionDefault
betNoWhat to bet (default ats: against the spread).
roleNo
roofNo
teamNoTeam: abbreviation, city or nickname, e.g. DAL, Dallas, Cowboys.
afterNoWhat happened in the team's previous game.
venueNo
refereeNoReferee's name.
specialNoA calendar spot.
weekdayNoe.g. Mon, Thu, Sat.
divisionNo
line_maxNoSide's own line at most this.
line_minNoSide's own line at least this (e.g. 3 = dogs of +3 or more; -7 = favourites of 7 or less).
opponentNoOnly games against this team.
temp_maxNoKickoff temperature at most (°F).
temp_minNo
week_maxNo
week_minNo
wind_minNoWind at least (mph).
after_byeNo
game_typeNo
season_toNo
total_maxNo
total_minNo
prime_timeNoKickoff 7:30pm ET or later.
short_weekNo5 days rest or fewer (Thursday games).
season_fromNo
angles_triedNoHow many angles were tried before this one (corrects the p-value for searching).
thanksgivingNo
opp_after_byeNo
rest_edge_minNoAt least this many more rest days than the opponent.
travel_miles_minNo
timezones_east_minNo
timezones_west_minNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With annotations already declaring readOnly/idempotent/non-destructive/non-open-world, the description goes well beyond them by disclosing the entire analytical output contract: 95% interval, the coin-flip baseline probability, an out-of-sample last-five-season holdout, season-by-season breakdown, and a best-of-20-random-angles comparison so 'a lucky trend is called noise'. It also explains the multiple-comparison correction behavior via angles_tried, which materially changes how the agent should call and read the tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both front-loaded: purpose and output contract first, filter inventory second. The filter list is dense but scannable and each item corresponds to a real parameter. Minor waste appears where overlapping concepts are enumerated separately (Thanksgiving appears both in the prose filter list and again as a calendar spot, and 'week range' duplicates week_min/week_max semantics), and the output enumeration is long, though it is not padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 33-parameter, no-required-argument, no-output-schema tool, the description covers the essentials an agent needs: what it computes, the significance framing, the full option space in prose, and usage examples. Gaps are moderate rather than fatal: it does not say how filters combine, what defaults apply to season range or bet type beyond the schema note, or how to interpret results when the filtered sample is very small.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 45% across 33 parameters, so the description must compensate, and it partially does by naming the filter families in prose (team, opponent, home/away, favourite/underdog, line range, total range, bye spots, short week, rest edge, division, prime time, weekday, Thanksgiving, week range, playoffs, roof, temperature, wind, time zones, miles, after win/loss/blowout, referee). That maps almost every undocumented parameter to a concept, but it adds no format or boundary semantics beyond what the schema already gives (e.g. how line_min interprets signs, which is only in the schema), so the added meaning is conceptual rather than operational.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource+dataset+scope: 'Backtests a betting angle or trend on every NFL game since 1999 against the closing number.' It then enumerates the exact outputs (record, win rate with 95% interval, coin-flip probability, held-out last five seasons, season by season, 20-random-angle benchmark), which makes it unmistakably a significance/backtest tool rather than a plain split tool like team_split or coach_split.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It supplies concrete trigger phrasings ('home dogs after a bye, real or noise', 'big road favourites off a loss', 'how do teams do on a short week', 'Thanksgiving road teams ATS') that tell the agent exactly what kind of question belongs here, and it states when to set angles_tried ('if several angles were looked at, to correct for the search'). It stops short of naming when NOT to use it or pointing to the sibling split tools for simple descriptive queries, so it is strong context without explicit exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources