An MCP server for retrieving football/soccer data including fixtures, standings, player information, and league data from the API-Football API
The soccer_server has 5 tools with explicit schema and description registrations via FastMCP decorators. All tools have non-empty descriptions and input parameter schemas with type definitions. However, descriptions are generic and lack depth required for optimal LLM tool selection. No parameter-level descriptions are visible in the schema (descriptions appear only in the docstring, not in the JSON Schema 'items' field). Output schemas are not formally documented, responses are implicitly described in docstrings but not as structured schema definitions. Error handling returns generic error dicts ('error' key with message string) without guidance on recovery or retryability. No tool annotations (readOnlyHint, destructiveHint, idempotentHint) are declared. All tools are read-only (READ_ONLY risk tag), so destructive and idempotent hints are not needed, but this should be explicit in tool definitions for clarity. Tool names follow verb_noun convention and are clear. No parameter validation is visible, tools rely on requests library and upstream API validation.
Retrieve a list of all football leagues with IDs, optionally filtered by country. This tool retrieves a list of football leagues and their IDs. It can be filtered by providing a list of country names. Uses the `/leagues` endpoint. **Args:** country (Optional[List[str]]): A list of country names to filter the leagues. Use ["all"] to retrieve leagues from all countries. If None (default), no filtering is applied (though this is the same behavior as ["all"]). **Returns:** Dict[str, Any]: A dictionary containing league information, or an error message. Key fields: * "leagues" (Dict[str, Dict[str, Any]]): A dictionary where keys are league names and values are dictionaries containing "league_id" and "country". * "error" (str): An error message if the request fails. **Example:** ```python get_all_leagues_id(country = ["England", "Spain"]) # Expected sample Output (will have many more entries): # { # "leagues": { # "Premier League": {"league_id": 39, "country": "England"}, # "La Liga": {"league_id": 140, "country": "Spain"}, # ... # } # } ```
Retrieves all fixtures for a given league and season. Args: league_id (int): The ID of the league. season (int): The year of the season (e.g., 2023 for the 2023-2024 season). Returns: Dict[str, Any]: A dictionary containing fixture data or an error message. Key fields: * "response" (List[Dict[str, Any]]): A list of fixture dictionaries, as returned by the API. * "error" (str): An error message if the request failed. Example: ```python get_league_fixtures(league_id=39, season=2023) ```
Output schemas not documented. Tools return Dict[str, Any] with implicit structure. Docstrings describe response fields in prose ('response': List[Dict[str, Any]], 'error': str), but no formal JSON Schema is provided for tool outputs. LLMs cannot parse expected fields or validate responses against a schema.
Parameter descriptions missing from JSON Schema. The input schemas define types but lack 'description' fields within the schema object itself. Descriptions exist only in the function docstring. FastMCP may be omitting schema descriptions from the parameter definitions, forcing LLMs to infer intent from parameter names alone.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 48 | 2026-07-28+ | v2 |
Retrieve the league ID for a given league name. This tool searches for a league by its name and returns its ID. It uses the `/leagues` endpoint of the API-Football API. **Args:** league_name (str): The name of the league (e.g., "Premier League", "La Liga"). **Returns:** Dict[str, Any]: A dictionary containing the league ID, or an error message. Key fields: * "league_id" (int): The ID of the league, if found. * "error" (str): An error message if the league is not found or an error occurs. **Example:** ``` get_league_id_by_name(league_name="Premier League") # Expected output (may vary): {"league_id": 39} ```
Retrieve a list of player IDs and identifying information for players matching a given name. This tool searches for players by either their first *or* last name and returns a list of potential matches. It includes identifying information to help disambiguate players. Uses the `/players/profiles` endpoint.
Retrieve league standings for multiple leagues and seasons, optionally filtered by team. This tool retrieves the standings table for one or more leagues, across multiple seasons. It can optionally filter the results to show standings for a specific team. Uses the `/standings` endpoint. **Args:** league_id (Optional[List[int]]): A list of league IDs to retrieve standings for. season (List[int]): A list of 4-digit season years (e.g., [2021, 2022]). team (Optional[int]): A specific team ID to filter the standings. **Returns:** Dict[str, Any]: A dictionary containing the standings, or an error message. The structure is: * `{league_id: {season: standings_data}}` `standings_data` is the raw JSON response from the API for the given league and season. If an error occurs for a specific league/season, the `standings_data` will be `{"error": "error message"}`. **Example:** ```python get_standings(league_id=[39, 140], season=[2022, 2023], team=None) ```
No tool annotations declared. Tools lack readOnlyHint despite being read-only. This prevents LLMs from understanding which tools are safe to call without user confirmation and which might have side effects.
get_player_id has incomplete description. The docstring is cut off mid-sentence ('Uses the `/players/profiles` endpoint.' ends abruptly). Full Returns, Args, and Example sections are missing, leaving the tool's output contract undocumented.
Error handling lacks recovery guidance. All tools return {'error': '<message>'} on failure with no guidance on whether errors are retryable, user-fixable, or fatal. No actionable next steps provided.
No input validation or constraint documentation. Parameters lack enum declarations (e.g., 'country' is Optional[List[str]] with no validation), regex patterns, or min/max bounds. LLMs can pass invalid values (negative season years, empty lists) without bounds checking.
API key injection via environment variables is correct, but no tool validates that the key is set before making external calls. get_league_fixtures checks and returns an error; others (e.g., get_standings code snippet) may not show the same guard.