Skip to main content
Glama

get_line_variance

Surveys every sportsbook quote for the same side of the same market/line and returns the cross-book price variance (best vs. worst decimal odds) as a percentage, sorted descending. Useful for line-shopping and detecting stale quotes. Covers the five professional leagues (mlb, nfl, nba, wnba, nhl). Omit sport for the all-league aggregate. Collegiate and NCAA rows are never returned. Kalshi contracts are formatted as cents plus American odds (42¢ (+138)); sportsbook prices stay American (-110, +125).

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": "get_line_variance"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return.
sportNoOptional professional-league filter. Case-insensitive. Allowed values: mlb, nfl, nba, wnba, nhl. Omit to return the aggregate across all five active pro leagues. Collegiate and NCAA rows are never returned.
leagueNoLegacy alias for sport. Case-insensitive professional league: mlb, nfl, nba, wnba, nhl. Ignored when sport is also set. Omit both sport and league for the all-league aggregate.
market_nameNoOptional exact market name filter, e.g. 'Moneyline'.
min_variance_pctNoMinimum cross-book variance percentage to report.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it declares the return shape (variance percentage, descending sort), the covered domain (five named pro leagues, college excluded), and output formatting conventions (Kalshi as 42¢ (+138), sportsbooks as -110/+125). It does not cover rate limits, auth requirements, or how ties/identical quotes are handled, which keeps it below the top score.

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?

Front-loaded with the core operation and return shape, then scope rules, then formatting conventions. All five sentences carry information, though the Kalshi/American odds formatting sentence is somewhat tangential to selecting or invoking this specific tool and could be trimmed.

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 5-parameter read tool with no output schema and no annotations, the description supplies the return-value explanation the missing output schema would otherwise provide, plus domain scoping. Remaining gaps are minor: no statement of ordering ties, pagination behavior beyond the limit default, or whether partial data degrades results.

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 100%, so the baseline is 3; the schema already documents limit, sport/league aliasing, market_name, and min_variance_pct. The description reinforces the omit-sport-for-aggregate behavior and the exclusion of collegiate rows, but adds no new syntax or semantics beyond what the schema fields already state.

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

Purpose4/5

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

States a specific verb and resource: 'surveys every sportsbook quote for the same side of the same market/line' and returns 'cross-book price variance (best vs. worst decimal odds) as a percentage, sorted descending.' This is unambiguous about what is computed and returned. It stops short of naming the sibling tools (get_arbitrage_opportunities, get_sharp_consensus), so the agent must infer the distinction from 'line-shopping and detecting stale quotes.'

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?

Gives explicit usage context ('useful for line-shopping and detecting stale quotes') and concrete scoping rules ('Omit sport for the all-league aggregate', 'Collegiate and NCAA rows are never returned'). What is missing is an explicit when-to-use-this-instead-of-sibling statement; the alternatives are never named or contrasted.

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