Skip to main content
Glama

SportStatsAPI

find_leagues

Read-only

Find leagues (competitions) of a sport and their ids, optionally by name or country (also matches official_name, the competition's official or Wikidata name where known). Free.

Input Schema

NameRequiredDescriptionDefault
langNolanguage of team, league and country names: de, es, it or fr (default English)
queryNotext the league or country name must contain, e.g. 'Premier League' or 'Germany'
sportYessport: soccer, basketball, baseball, hockey, tennis, handball, volleyball, american-football, cricket, rugby (union), rugby-league, esports or table-tennis
futureNoonly leagues with upcoming matches

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sport / description
      Previous value: -"sport: soccer, basketball, baseball, hockey, tennis, handball, volleyball, american-football, cricket, rugby (union), rugby-league or esports"New value: +"sport: soccer, basketball, baseball, hockey, tennis, handball, volleyball, american-football, cricket, rugby (union), rugby-league, esports or table-tennis"
  2. Changed1 schema field changed
    • changedInput schema / properties / sport / description
      Previous value: -"sport: soccer, basketball, baseball, hockey, tennis, handball, volleyball, american-football, cricket, rugby (union) or rugby-league"New value: +"sport: soccer, basketball, baseball, hockey, tennis, handball, volleyball, american-football, cricket, rugby (union), rugby-league or esports"
  3. Changed1 schema field changed
    • changedInput schema / properties / sport / description
      Previous value: -"sport: soccer, basketball, baseball, hockey, tennis, handball, volleyball, american-football or cricket"New value: +"sport: soccer, basketball, baseball, hockey, tennis, handball, volleyball, american-football, cricket, rugby (union) or rugby-league"
  4. Changed1 schema field changed
    • changedInput schema / properties / sport / description
      Previous value: -"sport: soccer, basketball, baseball, hockey, tennis, handball, volleyball or american-football"New value: +"sport: soccer, basketball, baseball, hockey, tennis, handball, volleyball, american-football or cricket"
  5. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The read-only and idempotent annotations already cover the safety profile, but the description still adds useful context beyond them: the tool is 'Free' and the query also matches official_name (the Wikidata name 'where known'). It does not describe pagination, rate limits, or what happens on empty results, so it is not a full 5.

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

Conciseness5/5

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

One tightly written sentence that front-loads the core action and return value, with parenthetical clarifications that earn their place. The final 'Free.' is short but conveys cost 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?

For a simple search tool with full schema coverage and annotations, the description is nearly complete: it states the resource, the ID return value, the optional filters, and cost. The only missing pieces are result limits/pagination behavior, which for a search endpoint could matter but is minor here.

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 description coverage, the baseline is 3, but the description adds genuine meaning for the query parameter by noting it matches 'official_name' in addition to league/country names. That extra matching scope is not stated in the schema.

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 states a specific verb and resource — 'Find leagues (competitions) of a sport and their ids' — which lets an agent distinguish this from data-fetching siblings like get_league_facts or get_standings. It does not explicitly name an alternative tool or contrast itself with one, so it falls short of a 5.

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 implied: use it to resolve league IDs, optionally filtered by name or country. However, it never states when to prefer this over get_league_facts, get_standings, or list_sports, nor does it give any exclusions or prerequisites, leaving routing to inference.

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