Skip to main content
Glama

Find Nearby Courses

find_nearby_courses
Read-onlyIdempotent

START HERE to plan golf near a place, transit station, address, or US ZIP: pass the place text as location, plus access (public/private/all) and holes (9/18) if known. Coordinates are optional; no slug knowledge is needed. Resolves the location and returns its labeled center and a nearest-first ranked shortlist with canonical Stymie URLs, reusable slugs, straight-line miles, access, holes, and scorecard availability. If the place is ambiguous, ask the golfer to choose a candidate. NEXT call build_golf_trip with the returned latitude/longitude and the same preferences for 1-4 course picks. Use search_courses only for a specific course name. Copy returned URLs verbatim; distances are not drive/transit times.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_nearby_courses"
  }
}

Input Schema

NameRequiredDescriptionDefault
holesNoTotal course holes; omit if flexible
limitNo
stateNoState/province code, e.g. IL, ON, or NSW, to disambiguate a place
accessNoall
countryNoCountry code to disambiguate a place; GB means UK
latitudeNo
locationNoPlace name, transit station, address, or US ZIP; extract the place from the golfer’s sentence
longitudeNo
distance_milesNoSearch radius in miles: one of 5, 10, 20, 25, 5025

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / country / enum
      Previous value: -[
      -  "US",
      -  "CA",
      -  "GB",
      -  "IE",
      -  "AU",
      -  "NZ"
      -]New value: +[
      +  "US",
      +  "CA",
      +  "GB",
      +  "IE",
      +  "AU",
      +  "NZ",
      +  "PT",
      +  "MX",
      +  "DO"
      +]
  2. Changed6 schema fields changed
    • addedInput schema / properties / country
      Added value: +{
      +  "description": "Country code to disambiguate a place; GB means UK",
      +  "enum": [
      +    "US",
      +    "CA",
      +    "GB",
      +    "IE",
      +    "AU",
      +    "NZ"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / holes
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "9",
      +        "18",
      +        "27",
      +        "36"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "const": 9,
      +      "type": "number"
      +    },
      +    {
      +      "const": 18,
      +      "type": "number"
      +    },
      +    {
      +      "const": 27,
      +      "type": "number"
      +    },
      +    {
      +      "const": 36,
      +      "type": "number"
      +    }
      +  ],
      +  "description": "Total course holes; omit if flexible"
      +}
    • changedInput schema / properties / location / description
      Previous value: -"City, 5-digit ZIP code, or golf destination"New value: +"Place name, transit station, address, or US ZIP; extract the place from the golfer’s sentence"
    • changedInput schema / properties / location / maxLength
      Previous value: -100New value: +200
    • changedInput schema / properties / state / description
      Previous value: -"Optional 2-letter state or province code to disambiguate a city, e.g. ON for Toronto, Canada"New value: +"State/province code, e.g. IL, ON, or NSW, to disambiguate a place"
    • changedInput schema / properties / state / maxLength
      Previous value: -2New value: +3
  3. Changed1 schema field changed
    • changedInput schema / properties / state / description
      Previous value: -"Optional 2-letter state code to disambiguate a city"New value: +"Optional 2-letter state or province code to disambiguate a city, e.g. ON for Toronto, Canada"
  4. Changed4 schema fields changed
    • addedInput schema / properties / distance_miles / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "5",
      +      "10",
      +      "20",
      +      "25",
      +      "50"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "const": 5,
      +    "type": "number"
      +  },
      +  {
      +    "const": 10,
      +    "type": "number"
      +  },
      +  {
      +    "const": 20,
      +    "type": "number"
      +  },
      +  {
      +    "const": 25,
      +    "type": "number"
      +  },
      +  {
      +    "const": 50,
      +    "type": "number"
      +  }
      +]
    • addedInput schema / properties / distance_miles / description
      Added value: +"Search radius in miles: one of 5, 10, 20, 25, 50"
    • removedInput schema / properties / distance_miles / enum
      Removed value: -[
      -  "5",
      -  "10",
      -  "20",
      -  "25",
      -  "50"
      -]
    • removedInput schema / properties / distance_miles / type
      Removed value: -"string"
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover only safety profile (readOnly/idempotent/openWorld), and the description goes well beyond them: it discloses the resolution step, the returned 'labeled center', nearest-first ranking, slug reusability, that distances are straight-line rather than drive/transit times, and the ambiguity-handling protocol (ask the golfer to choose). These are behavioral traits an agent cannot infer from the annotations.

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

Conciseness4/5

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

Front-loaded with 'START HERE' and organized as purpose, inputs, returns, ambiguity, next-step. Dense but nearly every clause carries information; minor redundancy in 'no slug knowledge is needed' alongside 'reusable slugs', and the URL-verbatim warning is slightly buried at the end.

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

Completeness5/5

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

For a 9-parameter, no-output-schema, open-world discovery tool, the description covers inputs, return shape, ordering, ambiguity handling, and downstream chaining. Little an agent needs in order to call this correctly is missing, and the schema's own parameter descriptions fill the remaining gaps.

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?

With 56% schema coverage, the description adds real meaning for the key parameters: location is the extracted place text, access and holes are optional filters, and latitude/longitude are optional so 'no slug knowledge is needed'. It does not discuss limit, distance_miles, state, or country, leaving the radius semantics and result cap entirely to the schema.

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

Purpose5/5

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

States a specific verb and resource ('plan golf near a place') and explicitly frames itself as the entry point ('START HERE'), then differentiates from siblings by naming search_courses as the tool for a specific course name. An agent can select it without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use ('plan golf near a place, transit station, address, or US ZIP'), an exclusion ('Use search_courses only for a specific course name'), and a concrete next step ('NEXT call build_golf_trip with the returned latitude/longitude'). The routing decision is fully determined.

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.

Resources