Skip to main content
Glama

Fourth down

get_fourth_down
Read-onlyIdempotent

Use for a 4th down: the offense's win probability if it goes for it, kicks a field goal or punts, with the conversion and make chances, the best choice and its margin. Pass game_id and offense (team code) to use that game's pregame strength, or offense_home and pregame_home_prob for any situation. Market-free models; a margin under 0.03 is flagged close_call. Costs 5 credits.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "yardline_100": "<yardline_100>",
      "yards_to_go": "<yards_to_go>",
      "seconds_left": "<seconds_left>",
      "score_diff": "<score_diff>"
    },
    "name": "get_fourth_down"
  }
}

Input Schema

NameRequiredDescriptionDefault
game_idNoGame id (2025_01_KC_BUF) for that game's pregame strength
offenseNoTeam with the ball (required with game_id)
score_diffYesThe offense's score minus the defense's
yards_to_goYesYards to go
offense_homeNoWithout game_id: is the offense the home team (default true)
seconds_leftYesGame seconds left in regulation (Q1 15:00 = 3600, halftime = 1800)
yardline_100YesYards from the opponent's end zone (35 = the opponent's 35)
pregame_home_probNoWithout game_id: the home team's pregame win chance (default 0.5)

Output Schema

NameRequiredDescriptionDefault
bestYes
gameNo
noteYes
modelYes
marginYes
optionsYes
versionYes
situationYes
close_callYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description adds real value beyond them: market-free modeling, a close_call flag at a stated 0.03 margin threshold, and a 5-credit cost. Missing only things like rate limits or latency, which is minor for a read-only computation.

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?

Three sentences, front-loaded with the outcome, then the parameter modes, then the cost/flag caveats. Dense but every clause carries information; only slight tightening would be possible.

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

Completeness5/5

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

An output schema exists, so return values need no explanation. Given 8 parameters across two modes, the description supplies the mode selection rule, the cost, and the close_call interpretation threshold, which is everything an agent needs to call it correctly.

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

Parameters4/5

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

With 100% schema coverage the baseline is 3, but the description adds genuine meaning the schema cannot express: the two parameter sets are mutually exclusive modes (game_id + offense vs. offense_home + pregame_home_prob with default 0.5). That pairing logic is the main invocation pitfall and it is called out.

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?

"Use for a 4th down" names the exact situation, then enumerates the three outcomes modeled (go for it, field goal, punt) and the returned decision artifacts (conversion/make chances, best choice, margin). This is specific enough to separate it from win-probability siblings like get_game_probabilities or get_live_win_probability.

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?

Clearly scopes when to use it (4th-down decision analysis) and gives two explicit calling modes: game_id + offense for a real game's pregame strength, or offense_home + pregame_home_prob for a hypothetical. It does not explicitly exclude or point to an alternative tool, which keeps it short of a 5.

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.