Strokes gained for a hole or round
strokes_gainedStrokes gained for every shot of one or more holes, and the totals by category: off the tee, approach, around the green (30 yards and in) and putting. Measured against a scratch golfer by default, with the PGA Tour figure alongside; set baseline to "tour", or to "handicap" with the index, to grade the same shots against the Tour or a golfer of that handicap ("compared with a 15 handicap"). Give one entry per stroke, the position it was played from; the last entry of each hole is the shot that went in, so the number of entries is the score (plus any penalty strokes). Where the golfer's app shows this tool's card, the card already lists every shot, what it did, the totals and the four categories: then reply in a sentence or two on what stands out (or answer the question), with no table or list of the shots.
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": {
"holes": "<holes>"
},
"name": "strokes_gained"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| holes | Yes | ||
| baseline | No | Who to measure against: "scratch" (the default), "tour" (the average PGA Tour player), or "handicap" with handicap set. | |
| handicap | No | The handicap index to measure against, when baseline is "handicap" (e.g. 15). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| holes | Yes | ||
| total | Yes | ||
| source | Yes | ||
| strokes | Yes | ||
| baseline | Yes | ||
| handicap | Yes | ||
| highlights | Yes | ||
| total_tour | Yes | ||
| by_category | Yes | ||
| baseline_key | Yes |