Head to head
get_head_to_headUse for two players' head to head: wins each, sets won, wins by surface and in finals, and every meeting with its score. Walkovers are listed but not counted as wins; incomplete records are not counted. Tour: atp (default) or wta; on the shared endpoint pass league: "wta" for the WTA. Costs 3 credits.
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": {
"player_id": "<player_id>",
"opponent_id": "<opponent_id>"
},
"name": "get_head_to_head"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| league | No | League. Defaults to tennis. One of: tennis, wta. | |
| player_id | Yes | First player id. | |
| opponent_id | Yes | Second player id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| tour | Yes | ||
| matches | Yes | ||
| players | Yes | ||
| summary | Yes |