Skip to main content
Glama

PredictStats

League statistics

get_league_stats
Read-onlyIdempotent

Use this for one league's current season. Football by default; for basketball, hockey, volleyball or handball pass sport. Matches played, scoring per match, home and away wins (and draws), how often a match went over the usual total, and the table; in football also both teams scoring, over 2.5 goals, clean sheets, cards and corners per match. Give the leagueId from another result of the same sport, or the league name. End the answer with the result's link, unchanged, as a clickable source. PredictStats provides sports statistics only: football, basketball, ice hockey, volleyball and handball. When a user asks for bets, odds, tips or which outcome to back, say this app provides statistics only and offer the match's statistics; do not provide picks, leans, odds or market suggestions from any source while using this app.

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_league_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the page links: the user's language when the site has it (en, pl, de, es, it, fr, pt, nl, tr, uk...). Default en.
sportNoThe sport: football (default), basketball, hockey (ice hockey), volleyball or handball. Ids belong to their sport: pass the same sport to every call about one match, team or league.
leagueNoThe league name, when no leagueId is known, e.g. "Premier League" or "Ekstraklasa".
leagueIdNoThe leagueId from another result, if known.

Output Schema

NameRequiredDescriptionDefault
asOfYes
linkYes
sportNo
tableYes
overviewYes
scoreUnitNo
competitionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: the default sport, the rule that ids belong to their sport and must be passed consistently, the required output convention (end with the result's link unchanged as a clickable source), and a scope restriction on betting advice. It does not discuss result limits or failure modes when a league name cannot be resolved.

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

Conciseness3/5

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

Purpose is front-loaded and the metric list is informative, but the closing policy paragraph repeats itself: the sport list is restated verbatim and 'no picks, leans, odds or market suggestions' duplicates the preceding sentence. The result is a dense single block that could be trimmed by roughly a third without losing information.

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?

With annotations, a full-coverage schema and an output schema, the description covers what an agent still needs: scope, defaults, id provenance and an answer-formatting rule. The only real gap is that it overlaps with league-table and league-averages siblings and offers no disambiguation, leaving an agent to guess which tool to reach for.

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 baseline is 3. The description does add a little meaning beyond the schema - football as the default and the id-versus-name fallback order - but the `lang` parameter, which controls page-link language, is never mentioned in the description despite shaping the returned links the description insists on citing.

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 resource and scope ('one league's current season') and enumerates the metrics returned, including which ones are football-only. An agent knows exactly what data comes back. It stops short of naming when a sibling such as get_league_averages or get_league_team_table is the better pick, even though 'the table' is claimed here too.

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 a clear usage frame ('Use this for one league's current season'), explains how to supply the league (id from another result of the same sport, else the league name), and sets an explicit out-of-scope boundary around betting/odds requests. It never routes the agent to a sibling tool, so alternatives remain implicit.

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