Get head-to-head
get_h2hHead-to-head of two teams (soccer by default; any team sport with results: basketball, baseball, hockey, handball, volleyball, American football) over every meeting in our data (all competitions, no friendlies): won, drawn and lost from team_a's side (home_team_* fields = team_a), goals (the sport's score: points, runs, sets won), each side's biggest win, the last 5 meetings, with sentences (lang de, es, it, fr). history_from: our data starts there, so say 'since' that date. Tennis: get_player with vs. Facts only. Part of the Insights feature.
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": {
"team_a": "<team_a>",
"team_b": "<team_b>"
},
"name": "get_h2h"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | language of team, league and country names: de, es, it or fr (default English) | |
| sport | No | team sport (default soccer; see list_sports; tennis: get_player with vs) | |
| team_a | Yes | team code (or number) from find_teams or a match | |
| team_b | Yes | the other team's id |