Skip to main content
Glama

Resolve a team

get_team
Read-only

Resolve a nation name or 3-letter code to its FIFA code, flag, and group; handles fuzzy inputs and ambiguous queries, returning a confident match plus candidates.

Instructions

The World Cup roster: resolve a nation name or 3-letter code to its FIFA code, flag, and group. Fuzzy and forgiving: accepts "Mexico", "mex", "USA", "DR Congo", "Türkiye"/"Turkey", "Holland", etc. Useful for the 3-letter code get_market_signal needs. It knows no clubs: get_next_fixture resolves a club's name itself. Returns the single confident match (team), plus candidates (matches) when the query is ambiguous (e.g. "south" → South Africa, South Korea). Offline: reads the bundled roster, never the network.

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": {
      "query": "<query>"
    },
    "name": "get_team"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesTeam name or 3-letter code, e.g. "Mexico", "MEX", "DR Congo"

Output Schema

NameRequiredDescriptionDefault
teamYes
countYes
queryYes
matchesYes
responseTruncatedNo
responseTruncationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.10.0
    • addedOutput schema / properties / responseTruncated
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / responseTruncation
      Added value: +{
      +  "type": "string"
      +}
  2. Addedv0.9.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the bar is lower; the description still adds that it is fully offline and never touches the network, plus that ambiguous queries return a set of candidates rather than guessing. That ambiguity behavior is genuinely useful context, though it partly overlaps the output schema.

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?

Purpose is front-loaded in the first clause, then scope limits, aliases, and offline behavior follow in a logical order with no filler sentences. The label-style opening ('The World Cup roster:') and the slightly promotional 'Fuzzy and forgiving' cost it a point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter resolver with annotations and an output schema, nothing material is missing: the description covers what it resolves, what it returns on ambiguity, its data source, and where its responsibility ends relative to siblings.

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?

Schema coverage is 100%, so baseline is 3, but the description earns extra credit by characterizing match tolerance ('fuzzy and forgiving') and enumerating alias and diacritic cases like 'mex', 'Türkiye'/'Turkey', 'Holland' that tell the agent what variant forms will succeed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'resolve a nation name or 3-letter code to its FIFA code, flag, and group' — and explicitly bounds scope ('It knows no clubs'), pointing club resolution to get_next_fixture. An agent can distinguish it from every sibling without opening a schema.

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

Usage Guidelines5/5

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

Gives positive usage ('Useful for the 3-letter code get_market_signal needs'), a negative boundary ('It knows no clubs: get_next_fixture resolves a club's name itself'), and input-tolerance guidance with concrete examples including diacritics and aliases. Alternatives and exclusions are both named.

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