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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | Yes | Game title: lol | cs2 | dota2 | cod | ufc | tennis. 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 |