Skip to main content
Glama

Statof Football Stats

Team statistics

get_team_stats
Read-onlyIdempotent

A team's numbers per stat over a window: average, median and range for the team ("for"), its opponents ("against") and the match total, plus how often the total and the team went over common lines (e.g. corners over 9.5). Also W/D/L, goals and both-teams-scored counts. Facts about past matches only.

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": {
      "team": "<team>"
    },
    "name": "get_team_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineNoAn extra line to count, e.g. 10.5.
teamYesTeam name, nickname or id, e.g. "Arsenal", "Spurs", "868".
statsNoStats to include. Any of: goals, corners, corners_1h, corners_2h, yellow_cards, red_cards, total_cards, booking_cards, fouls, throw_ins, offsides, goal_kicks, shots_total, shots_on_target, shots_off_target, shots_blocked, xg, possession, saves, tackles, crosses. Default: goals, corners, total_cards.
venueNoDefault all.
leagueNoOnly matches in this competition.
windowNoDefault last_10. "season" = the current season of the team's domestic league.
include_matchesNoList the matches with their stats. Default false.

Output Schema

NameRequiredDescriptionDefault
teamYes
statsYes
recordYes
windowYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds the important temporal constraint that results describe past matches only, which is real behavioral value beyond the annotations. It stops short of covering things like how windows are bounded when a season has few matches, or any rate/cost limits.

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, front-loaded with the substantive content (per-stat aggregates) and finishing with the past-only constraint. The parenthetical line example is compact and clarifying rather than padding. Slightly dense in the first sentence but nothing is wasted.

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 7-parameter read-only aggregation tool with a full output schema, the description covers what dimensions the data varies along (team/against/total, stat, window) and what the aggregate values mean. Return-value structure is appropriately left to the output schema. Missing only explicit sibling routing, which is the one remaining gap.

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, and the description earns an increment by clarifying what 'line' does in context — counting how often the total and the team went over common lines such as corners over 9.5 — and by explaining that stats are reported as 'for', 'against' and match total. Window, venue, league and stats semantics are left to the schema, which documents them well.

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?

The description names a specific resource and scope — per-stat average/median/range for the team, its opponents and the match total, plus over-line counts, W/D/L, goals and BTTS — so an agent knows exactly what data comes back. It does not explicitly contrast itself with siblings like get_head_to_head or get_patterns, but the enumerated content is distinctive enough to separate it in practice.

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

Usage Guidelines3/5

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

Usage is only implied: 'facts about past matches only' tells the agent this is retrospective, not predictive, which is a useful boundary. There is no explicit when-to-use vs. alternatives guidance (e.g. when to prefer get_head_to_head or get_patterns), so the agent must infer selection from the sibling names alone.

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