Skip to main content
Glama

Strokes Gained by Shotto

Strokes gained for a hole or round

strokes_gained
Read-onlyIdempotent

Strokes 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

NameRequiredDescriptionDefault
holesYes
baselineNoWho to measure against: "scratch" (the default), "tour" (the average PGA Tour player), or "handicap" with handicap set.
handicapNoThe handicap index to measure against, when baseline is "handicap" (e.g. 15).

Output Schema

NameRequiredDescriptionDefault
holesYes
totalYes
sourceYes
strokesYes
baselineYes
handicapYes
highlightsYes
total_tourYes
by_categoryYes
baseline_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • addedOutput schema / properties / baseline_key
      Added value: +{
      +  "enum": [
      +    "scratch",
      +    "tour",
      +    "handicap"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / handicap
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / highlights
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "best": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "hole": {
      +              "type": "number"
      +            },
      +            "strokes_gained": {
      +              "type": "number"
      +            },
      +            "text": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hole",
      +            "text",
      +            "strokes_gained"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "costliest": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "hole": {
      +              "type": "number"
      +            },
      +            "strokes_gained": {
      +              "type": "number"
      +            },
      +            "text": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hole",
      +            "text",
      +            "strokes_gained"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "best",
      +    "costliest"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / holes / items / properties / length
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / holes / items / properties / number
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / holes / items / properties / result
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / holes / items / properties / shots / items / properties / from_text
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / holes / items / properties / shots / items / properties / holed
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / holes / items / properties / shots / items / properties / left
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / holes / items / properties / shots / items / properties / result
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / holes / items / properties / shots / items / properties / shot
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / holes / items / properties / shots / items / required
      Previous value: -[
      -  "from",
      -  "category",
      -  "strokes_gained",
      -  "strokes_gained_tour",
      -  "penalty_strokes"
      -]New value: +[
      +  "from",
      +  "category",
      +  "strokes_gained",
      +  "strokes_gained_tour",
      +  "penalty_strokes",
      +  "shot",
      +  "from_text",
      +  "result",
      +  "left",
      +  "holed"
      +]
    • addedOutput schema / properties / holes / items / properties / story
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / holes / items / required
      Previous value: -[
      -  "par",
      -  "strokes",
      -  "total",
      -  "shots"
      -]New value: +[
      +  "par",
      +  "strokes",
      +  "total",
      +  "number",
      +  "length",
      +  "result",
      +  "story",
      +  "shots"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "holes",
      -  "baseline",
      -  "by_category",
      -  "total",
      -  "total_tour",
      -  "strokes",
      -  "source"
      -]New value: +[
      +  "holes",
      +  "baseline",
      +  "baseline_key",
      +  "handicap",
      +  "highlights",
      +  "by_category",
      +  "total",
      +  "total_tour",
      +  "strokes",
      +  "source"
      +]
  2. Changed8 schema fields changed
    • addedInput schema / properties / baseline
      Added value: +{
      +  "description": "Who to measure against: \"scratch\" (the default), \"tour\" (the average PGA Tour player), or \"handicap\" with handicap set.",
      +  "enum": [
      +    "scratch",
      +    "tour",
      +    "handicap"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / handicap
      Added value: +{
      +  "description": "The handicap index to measure against, when baseline is \"handicap\" (e.g. 15).",
      +  "maximum": 54,
      +  "minimum": -10,
      +  "type": "number"
      +}
    • changedInput schema / properties / holes / items / properties / shots / description
      Previous value: -"Where each shot was played from, in order, starting from the tee. The last one was holed."New value: +"One entry per stroke: where each shot was played from, in order, starting from the tee. The last entry is the shot that went in (usually the final putt). Do not add an entry for the ball in the hole: a two-putt from 20 feet is two green entries, 20 feet and the length of the second putt."
    • addedOutput schema / properties / baseline
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / holes / items / properties / shots / items / properties / strokes_gained_tour
      Added value: +{
      +  "type": "number"
      +}
    • changedOutput schema / properties / holes / items / properties / shots / items / required
      Previous value: -[
      -  "from",
      -  "category",
      -  "strokes_gained",
      -  "penalty_strokes"
      -]New value: +[
      +  "from",
      +  "category",
      +  "strokes_gained",
      +  "strokes_gained_tour",
      +  "penalty_strokes"
      +]
    • addedOutput schema / properties / total_tour
      Added value: +{
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "holes",
      -  "by_category",
      -  "total",
      -  "strokes",
      -  "source"
      -]New value: +[
      +  "holes",
      +  "baseline",
      +  "by_category",
      +  "total",
      +  "total_tour",
      +  "strokes",
      +  "source"
      +]
  3. First observed

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered and the bar is lower. The description does add useful behavioral context – measurement baselines (scratch default, PGA Tour figure, handicap index) and the downstream response convention – but says nothing about limits, validation failures, or how partial hole data is handled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nothing is outright wasteful, but the content is delivered as one dense run-on paragraph mixing input format rules, baseline semantics and response conventions. It is front-loaded with the purpose, yet the mid-section counting rules are harder to extract than they need to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present the description need not explain return values, and it covers the input model and the response convention thoroughly. Minor gaps remain around size limits and error behavior, but the agent has enough to call the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% and the schema itself describes lie, distance, unit defaults and penalty strokes well. The description adds meaning beyond it: entries-per-stroke semantics where the entry count equals the score plus penalty strokes, the last entry being the holed shot, and concrete baseline semantics ('tour' = average PGA Tour player, 'handicap' with an index like 15).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource and computation: strokes gained per shot plus totals by four categories (off the tee, approach, around the green, putting). It is clear what the tool produces, but it never names or contrasts the siblings expected_strokes and compare_to_handicap, so an agent must infer the boundary from behavior rather than from an explicit routing sentence.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real conditional guidance on how to respond: when the golfer's app already displays the card, reply in a sentence or two with no table or list of shots. It also implies usage through the baseline parameter choices, but offers no explicit 'use this instead of X' exclusion relative to the sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.