h2h_matrix
Multi-player tennis head-to-head grid: every pair's series record in one comparison matrix.
When to use:
Draw/field analysis: how each contender fares against every other (e.g. Alcaraz vs Zverev vs Sinner round-robin records)
Group-stage or semifinal-field comparisons
Prefer over: N head_to_head calls for an N-player field; raw matrix via call_api.
Do not use when: a two-player rivalry deep-dive with tiebreak/decider splits → head_to_head; season stat leaders → leaderboard_*; rankings → standings.
Tennis-only. players takes 2-16 ids or names (names resolve via player search). Each matrix cell is "W-L" from the row player's perspective, "-" on the diagonal.
Parallel-safe: yes. Upstream cost: 1 + one search per unresolved name.
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": {
"game": "<game>",
"players": "<players>"
},
"name": "h2h_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | Yes | Game title: lol | cs2 | dota2 | cod | ufc | tennis | valorant. Example: "cs2". | |
| players | Yes | 2-16 tennis player ids (atp_207989) or names ("Carlos Alcaraz"); duplicates collapse. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true if the tool succeeded | |
| data | No | Result payload when ok is true; null on error | |
| meta | Yes | ||
| error | No | ||
| partial | No | ||
| pagination | No |