Skip to main content
Glama
football-docs

football-docs

by withqwerty

resolve_entity

Read-only

Map a football player, team, match or competition to its IDs across Opta, Transfermarkt, Wyscout, StatsBomb and other providers. Look up by provider ID, Reep ID or name to align records.

Instructions

Map a football entity (player, coach, referee, team, competition, season, stage or match) to its IDs at every provider through the Reep register: Opta, Transfermarkt, Wyscout, SkillCorner, StatsBomb, FotMob, API-Football and more. Look up by provider + id (pass namespace too, e.g. transfermarkt 'spieler', opta 'person'), by reep_id, or by name. Sources, in order: a local copy of the free register (REEP_DUCKDB_PATH), then the Reep API (REEP_API_KEY; keys are issued by hand on request, never self-service). With neither set, it returns setup steps and a DuckDB query. Keeping the local file current: Reep publishes a download release weekly or less often; new matching reaches the Reep API daily. Every local answer ends with the file's release stamp checked against https://data.reep.football/releases/latest.json. If it says the file is out of date, tell the user and offer to run the curl command it gives, which downloads https://reep.football/downloads/duckdb over the same path; the next call uses the new file without a restart. Before bulk matching, make sure the file is current.

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

Input Schema

NameRequiredDescriptionDefault
idNoThe provider's own ID, used with provider
nameNoName to search, at least 3 characters (e.g. 'Declan Rice'). A name match is a shortlist, not an answer.
typeNoRestrict results to one entity type
reep_idNoA Reep ID (e.g. 'rp1b829f1d3468c4') to list every provider ID for
providerNoProvider key for an ID lookup, e.g. 'transfermarkt', 'opta', 'wyscout', 'skillcorner', 'fotmob'
namespaceNoThe provider's namespace for that ID, e.g. 'spieler' or 'verein' for Transfermarkt, 'person' or 'team' for Opta, 'player' for Wyscout. Recommended: some providers reuse numbers across entity types.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.17.8
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "player",
      -  "coach",
      -  "referee",
      -  "team",
      -  "competition",
      -  "season",
      -  "stage",
      -  "venue",
      -  "match"
      -]New value: +[
      +  "player",
      +  "coach",
      +  "referee",
      +  "team",
      +  "competition",
      +  "season",
      +  "stage",
      +  "venue",
      +  "match",
      +  "transfer",
      +  "award"
      +]
  2. Changed1 schema field changedv0.17.7
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "player",
      -  "coach",
      -  "referee",
      -  "team",
      -  "competition",
      -  "season",
      -  "stage",
      -  "match"
      -]New value: +[
      +  "player",
      +  "coach",
      +  "referee",
      +  "team",
      +  "competition",
      +  "season",
      +  "stage",
      +  "venue",
      +  "match"
      +]
  3. Changed8 schema fields changedv0.12.2
    • changedInput schema / properties / id / description
      Previous value: -"ID from the source provider to resolve to all other IDs"New value: +"The provider's own ID, used with provider"
    • changedInput schema / properties / name / description
      Previous value: -"Entity name to search for (e.g. 'Cole Palmer', 'Arsenal'). Fuzzy match on name and aliases."New value: +"Name to search, at least 3 characters (e.g. 'Declan Rice'). A name match is a shortlist, not an answer."
    • addedInput schema / properties / namespace
      Added value: +{
      +  "description": "The provider's namespace for that ID, e.g. 'spieler' or 'verein' for Transfermarkt, 'person' or 'team' for Opta, 'player' for Wyscout. Recommended: some providers reuse numbers across entity types.",
      +  "type": "string"
      +}
    • changedInput schema / properties / provider / description
      Previous value: -"Source provider for ID resolution (e.g. 'transfermarkt', 'fbref', 'sofascore', 'opta', 'soccerway')"New value: +"Provider key for an ID lookup, e.g. 'transfermarkt', 'opta', 'wyscout', 'skillcorner', 'fotmob'"
    • removedInput schema / properties / qid
      Removed value: -{
      -  "description": "Wikidata QID for direct lookup (e.g. 'Q99760796')",
      -  "type": "string"
      -}
    • addedInput schema / properties / reep_id
      Added value: +{
      +  "description": "A Reep ID (e.g. 'rp1b829f1d3468c4') to list every provider ID for",
      +  "type": "string"
      +}
    • changedInput schema / properties / type / description
      Previous value: -"Filter results by entity type"New value: +"Restrict results to one entity type"
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "player",
      -  "team",
      -  "coach"
      -]New value: +[
      +  "player",
      +  "coach",
      +  "referee",
      +  "team",
      +  "competition",
      +  "season",
      +  "stage",
      +  "match"
      +]
  4. First observedv0.6.4

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses the resolution chain, that API keys are hand-issued and never self-service, that with neither source configured the call returns setup steps and a DuckDB query instead of results, and that every local answer carries a release stamp checked against a remote latest.json. It even explains that a triggered download is picked up without a restart — behavior an agent could not guess from annotations.

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?

The purpose is front-loaded in the first sentence and the remaining sentences are operationally load-bearing (auth, fallback, staleness, update). It is dense and slightly long, with the file-maintenance advice bordering on scope creep, but nothing is filler.

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 six-parameter, no-output-schema, open-world read tool, it covers sourcing, credentials, failure fallback, and staleness handling — the parts an agent cannot see elsewhere. The one gap is that it never sketches what a successful result looks like (a per-provider ID map vs. a name shortlist), though the schema param text partially covers the shortlist caveat.

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 coverage is 100%, so all six parameters are already documented, including the namespace examples the description repeats. The description adds only the ordered provider list and a reminder that namespace is recommended alongside provider, so it clears the baseline but adds little unique meaning.

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 opens with a specific verb and scope: 'Map a football entity ... to its IDs at every provider through the Reep register,' and enumerates both entity types and providers. It is clear what the tool does, but it never distinguishes itself from the sibling 'resolve_provider_id', leaving overlap for an agent to infer.

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?

It gives concrete usage context: three lookup modes (provider+id with namespace, reep_id, name) and the source precedence (local register first, then API), plus the 'Before bulk matching, make sure the file is current' rule. What's missing is explicit routing against the sibling 'resolve_provider_id'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.