Skip to main content
Glama
livetennisapi-mcp

livetennisapi-mcp

Head-to-head

get_h2h
Read-onlyIdempotent

Retrieves the all-time head-to-head record between two tennis players by name fragment, covering archived and recent completed matches and returning candidate names when ambiguous.

Instructions

The all-time record between two players, across BOTH halves of the product. That is the results archive (1968 to 2022) plus the completed matches from 2023 onward. Names are the keys. An ambiguous fragment returns the candidate list to choose from, and nothing is guessed. Totals count only meetings with a known winner. Walkovers and retirements are part of the record, and each meeting carries its outcome. Requires the BASIC plan or any History plan.

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": {
      "player1": "<player1>",
      "player2": "<player2>"
    },
    "name": "get_h2h"
  }
}

Input Schema

NameRequiredDescriptionDefault
player1YesFirst player name (fragment, min 3 chars), e.g. "federer".
player2YesSecond player name (fragment, min 3 chars), e.g. "nadal".

Output Schema

NameRequiredDescriptionDefault
okYesTrue when the request succeeded, including when the answer is an empty list. False for a missing or rejected key, a plan that does not include this data, an unknown id, a rate limit or a network error. The message then says what to do. check_api_status is the exception: it is true whenever the API answered, and reports API key problems in the message.
totalsNoThe headline record.
messageYesHuman-readable summary of the result, safe to relay to the user verbatim.
playersNoThe resolved names. Null when no player matches the fragments.
meetingsNoIndividual meetings, newest first, capped at 200.
by_surfaceNoDecided wins per surface. The keys are surface names plus "unknown".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv1.6.5
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / properties / by_surface / description
      Previous value: -"Decided wins per surface; keys are surface names plus \"unknown\"."New value: +"Decided wins per surface. The keys are surface names plus \"unknown\"."
    • addedOutput schema / properties / by_surface / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / meetings / items / properties / era / description
      Previous value: -"\"archive\" (results archive, 1968-2022) or \"current\" (our own completed matches, 2023 onward)."New value: +"\"archive\" (results archive, 1968-2022) or \"current\" (completed matches from 2023 onward)."
    • changedOutput schema / properties / meetings / items / properties / match_id / description
      Previous value: -"Our match id (current era rows) — pass to get_match."New value: +"Our match id (current era rows). Pass to get_match."
    • changedOutput schema / properties / meetings / items / properties / outcome / description
      Previous value: -"completed, retired, walkover, … — exclude non-completed yourself if needed."New value: +"completed, retired, walkover, ... Exclude non-completed yourself if needed."
    • changedOutput schema / properties / meetings / items / properties / score / description
      Previous value: -"Final score (archive rows only — read current rows from get_match)."New value: +"Final score (archive rows only. Read current rows from get_match)."
    • changedOutput schema / properties / message / description
      Previous value: -"Human-readable summary. Identical to the text content, so either half can be used alone."New value: +"Human-readable summary of the result, safe to relay to the user verbatim."
    • changedOutput schema / properties / ok / description
      Previous value: -"True when the call returned data. False for a tier wall, a missing or rejected key, or an empty result — all of which are normal states with a clear remedy, not failures."New value: +"True when the request succeeded, including when the answer is an empty list. False for a missing or rejected key, a plan that does not include this data, an unknown id, a rate limit or a network error. The message then says what to do. check_api_status is the exception: it is true whenever the API answered, and reports API key problems in the message."
    • changedOutput schema / properties / players / description
      Previous value: -"The resolved names; null when no player matches the fragments."New value: +"The resolved names. Null when no player matches the fragments."
    • changedOutput schema / properties / totals / properties / undecided / description
      Previous value: -"Meetings with no derivable winner — never counted in wins."New value: +"Meetings with no derivable winner. Never counted in wins."
  2. Addedv1.3.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description earns credit for adding substance beyond them: totals exclude meetings with no known winner, walkovers and retirements still count, each meeting carries its outcome, and a BASIC or History plan is required. It leaves pagination and result-size behavior unstated, but that is minor given a documented 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?

About 70 words, with the core scope statement front-loaded and no filler. The staccato sentence fragments ('Names are the keys.') are slightly choppy and the plan requirement sits at the very end where it could be missed, but every sentence carries information.

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 2-parameter read tool with full annotation coverage and an output schema, the description covers the data sources, edge-case counting rules, ambiguity handling, and authorization requirement. Nothing an agent needs before calling it is missing.

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 the baseline would be 3. The description exceeds it by explaining that the two names are the sole keys and that a partial/ambiguous fragment triggers a candidate-list response instead of a guess, which is behavioral meaning the schema's 'fragment, min 3 chars' does not convey.

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?

The description names the exact resource (the all-time head-to-head record between two players) and pinpoints its scope: the results archive 1968-2022 plus completed matches from 2023 onward. That scope statement is what separates it from archive-only siblings like search_archive_matches and live-only siblings like get_live_matches.

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 explains the calling contract clearly: pass name fragments, and an ambiguous fragment returns a candidate list rather than guessing, which tells the agent an extra selection step may follow. It also states the plan prerequisite. It never explicitly says when to prefer a sibling tool (e.g. get_archive_career or get_match), so it stops short of full routing guidance.

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