CourtsApp
v1.0.1Find pickleball, tennis and padel courts, open play, coaches and tournaments, and book on CourtsApp.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_courts Find Courts
Use this when the user wants to find places to play racquet sports (pickleball, tennis, padel, badminton, racquetball, squash, table tennis) near a location, or wants to see open court times. Typical asks: "pickleball courts near me", "where can I play tennis tonight?", "book a padel court Saturday at 9am", "any indoor pickleball courts open now in Austin?", "court rental prices near 85016". Sport is what unlocks live open times. With a sport and a place to search around (city+state, zip code, lat+lng, or a facilityName) it returns live open times at nearby bookable clubs, followed by nearby c…
| Parameter | Type | Description |
|---|---|---|
date | string | Optional date to check live open times, as YYYY-MM-DD (e.g. "2026-01-22"). Defaults to today where the clubs are, so leave it out when the user named no day. Used with a sport. Pass the user's spoken… |
duration | integer | Optional play duration in minutes, used with a sport: 30, 60, 90 or 120. Defaults to 60. |
facilityName | string | Name of a club to find. With a sport it shows that club's live open times (a location is optional, the club says where to look) by narrowing the nearby bookable clubs by name and, if the location sear… |
location | object | Where to search. Accepts city+state, city-only, state-only, zip, or lat+lng. City+state or zip are preferred for accuracy. City-only may return broader results. Never use 0,0 or guess coordinates. A s… |
maxResults | integer | Only used for live open times (with a sport). Number of facilities with open times to return (1–10, default 3). Use more when the user wants to compare options. |
sortBy | string | Only used for live open times (with a sport). How to sort results. "distance" (default) returns closest facilities first. "price" returns cheapest facilities first. |
sport | string | Sport to look for. Pass it whenever the user names one: with a sport and a location the tool returns live open times; without one it only lists places to play (and the hint says to ask which sport). C… |
time | string | Optional start time as HH:MM in 24-hour format (e.g. "15:00" or "9:00"), used with a sport. Omit it when the user gave no time; results then start at the earliest open time that day (from now if today… |
get_booking_link Get Booking Link
Use this when the user has picked an open court time from search_courts and wants to reserve it ("book the 6pm court", "reserve that one for 90 minutes", "lock in Saturday at 9"). Get a booking link for a court. Requires facilityId, date, time, sportId, and duration. Optional players (1–8, default 2) pre-fills the booking page and is used for per-player fee totals. Returns a URL to the booking page with pre-filled details and pricing info (court + player fees).
| Parameter | Type | Description |
|---|---|---|
duration * | integer | Duration in minutes, e.g. 60 (from the slot the user picked) |
facilityId * | string | Facility UUID from search_courts results |
sportId * | string | Sport UUID from search_courts results |
date | string | YYYY-MM-DD (from the slot the user picked) |
players | integer | Optional number of players (1–8). Defaults to 2. Required for accurate totals when the facility charges a per-player fee — ask the user before calling when perPlayerFeeDollars is set. |
surface | string | Optional surface filter (e.g. "Hard", "Clay") |
time | string | HH:MM 24-hour (from the slot the user picked) |
get_facility_details Get Facility Details
Use this when the user asks about a specific facility: hours, address, phone number, amenities, policies, what sports it offers, or its courts. Looks the facility up in the CourtsApp database. Typical asks: "what time does the club open?", "does it have indoor courts?", "how much is the per-player fee?", "what's the cancellation policy?", "is there a pro shop or parking?". Accepts partial name matches, city, state, or zip. facilityId is optional — use it only when you already have a real facility id from another CourtsApp tool; otherwise use name and location fields. At least one search fiel…
| Parameter | Type | Description |
|---|---|---|
city | string | City name (case-insensitive partial match). E.g. "Austin", "New York". |
facilityId | string | Optional. Must be a valid UUID string (RFC 4122) when provided — used for exact lookup by id. Omit when searching by name, city, state, or zip instead. |
name | string | Facility name or partial name (case-insensitive). E.g. "Lifetime", "Central Park Tennis", "YMCA". |
state | string | State name or abbreviation (case-insensitive). E.g. "Texas", "TX", "New York", "NY". |
zip | string | Zip/postal code (exact match) |
search_open_play Search Open Play Sessions
Use this when the user wants open play, drop-in, or to join a game with other players instead of reserving a whole court. Typical asks: "pickleball open play near me tonight", "drop-in tennis this weekend", "beginner open play in Scottsdale", "I'm solo, where can I find a game?". Finds open play sessions with spots left at CourtsApp facilities near a location, or at one facility. Requires location (city+state or zip preferred), facilityName, or facilityId. When the user names a facility, pass it as facilityName right away — do not ask for the city first. date, time, sport, and level are opti…
| Parameter | Type | Description |
|---|---|---|
date | string | Optional facility-local date as YYYY-MM-DD. Omit to search the next 7 days. |
facilityId | string | Optional facility UUID from another CourtsApp tool, to list one facility's sessions. Never invent one. |
facilityName | string | Facility name the user said (e.g. "Sportime Englewood"). Every word must appear in the name, in any order, so partial names work. Searched nationwide; add location to sort same-named clubs by distance… |
level | string | Optional skill level: Beginner, Advanced beginner, Intermediate, Advanced intermediate, Advanced, Expert, or Professional. Omit when the user has not said, or says any level. |
location | object | Where to search (50-mile radius). With facilityName or facilityId there is no radius and location only sorts by distance. Accepts city+state, city-only, state-only, zip, or lat+lng. City+state or zip… |
maxResults | integer | Number of facilities to return (1–10, default 3). |
sport | string | Optional sport filter (e.g. "pickleball"). Omit to include every sport. |
time | string | Optional earliest start time of day as HH:MM 24-hour (e.g. "17:00" for evening sessions). Pass the user's spoken time directly — no timezone conversion. |
search_lessons Find Lessons
Use this when the user wants a coach or private lessons for pickleball or tennis near a location. Not for court availability (search_courts) or open play (search_open_play). Typical asks: "pickleball lessons near me", "find a tennis coach in Phoenix", "tennis lessons for my kid", "a private pickleball lesson this weekend", "who can help me fix my serve?". Read-only: it finds TeachMe.To coaches within 25 miles who have an open lesson time in the next two weeks (times start 18 hours out, since coaches need that much notice), and does not book anything. Next, get_lesson_times shows a coach's open…
| Parameter | Type | Description |
|---|---|---|
sport * | string | Sport to find a coach for: pickleball or tennis. |
location | object | Where to look (25-mile radius). City+state or zip are preferred. A state alone is too broad. Use lat+lng only if the user provided real coordinates. Never use 0,0 or guess coordinates. |
maxResults | integer | Number of coaches to return (1-6, default 3). |
get_lesson_times Lesson Times
Use this when the user has picked a coach from search_lessons and wants to see when that coach is free for a private lesson. Not for court times (search_courts). Typical asks: "when is that coach free Saturday morning?", "any evening times next week?". Read-only: it shows the coach's open lesson times at one location and does not book anything. Pass the coach's listingId and the locationId from search_lessons (a coach who teaches at several places needs one). Optional: lessonLength in minutes (30, 60, 90 or 120; default the coach's usual length), startDate and endDate (YYYY-MM-DD, local days a…
| Parameter | Type | Description |
|---|---|---|
listingId * | string | The coach's listingId from search_lessons. |
earliestTime | string | Only times starting at or after this local time, HH:MM 24-hour (for example 17:00 for evenings). |
endDate | string | Last day to show, YYYY-MM-DD. Defaults to a week from the first day; at most 14 days in all. |
latestTime | string | Only times starting at or before this local time, HH:MM 24-hour. |
lessonLength | integer | Lesson length in minutes. Leave out for the coach's usual length. |
locationId | string | The locationId from search_lessons (the coach's place nearest the user). Needed when the coach teaches at more than one place. |
startDate | string | First day to show, YYYY-MM-DD, a local day at the location. Defaults to today. |
get_lesson_booking_link Lesson Booking Link
Optional: use this only when the user asks to have their own details filled in on the checkout for them. The default way to book needs no contact details: share the picked time's checkoutUrl from get_lesson_times exactly as returned. This tool prepares a TeachMe.To checkout for that lesson and returns a link where the user pays, with the coach, location, time and the student's details already filled in. It sends the student's full name, email address and phone number to TeachMe.To to prepare that checkout (they are what lets TeachMe.To fill them in), and creates their TeachMe.To account if the…
| Parameter | Type | Description |
|---|---|---|
lessonLength * | integer | Lesson length in minutes: the lessonLength of the times the user picked from. |
listingId * | string | The coach's listingId from search_lessons or get_lesson_times. |
locationId * | string | The locationId the time is at, from get_lesson_times. |
slotKey * | string | The slotKey of the time the user picked, copied exactly as returned. It cannot be edited. |
studentEmail * | string | The student's email address, as the user gave it. |
studentName * | string | The student's full name, as the user gave it. |
studentPhone * | string | The student's phone number with area code, as the user gave it. |
lessons | integer | How many lessons to buy as a prepaid pack (1-20). Defaults to 1. The first lesson is at the time picked. |
search_tournaments Find Tournaments
Use this when the user wants tournaments or leagues to play in, near a location or by name. Not for court availability (search_courts), open play (search_open_play) or coaching (search_lessons). Typical asks: "pickleball tournaments near me", "tennis leagues in Dallas", "any tournaments this weekend?", "when does registration close for Moneyball?". Read-only: it searches CourtsApp's catalog of events and cannot register anyone. Each event has a registration url on the organizer's site: share it exactly as returned and let the user sign up there. Never say anyone is registered. Location is opti…
| Parameter | Type | Description |
|---|---|---|
from | string | Optional first day to include, as YYYY-MM-DD: events still on or after it are returned. Defaults to today. |
location | object | Where to look (150-mile radius). City+state or zip are preferred; a state alone lists that state's events with no distances. Use lat+lng only if the user provided real coordinates. Never use 0,0 or gu… |
maxResults | integer | Number of events to return (1-10, default 6). |
q | string | Optional event name or venue to look for, e.g. "Moneyball". |
sport | string | Optional sport to find events for. Pass it whenever the user names one. Case-insensitive. Common aliases accepted (e.g. "pickle ball" → pickleball). |
to | string | Optional last day to include, as YYYY-MM-DD: events starting on or before it are returned. Omit for no end date. |
type | string | Optional: only tournaments, or only leagues. Leave it out for both. |
get_facility_times Get Facility Times
Lists every open court time at one bookable CourtsApp facility on one day, grouped by indoor or outdoor and surface, with per-hour prices and a booking link for each. The CourtsApp facility card calls this to show a club's times on its profile; it is not needed to find courts for a user, which search_courts does (it returns the first few times per club). Needs the facility's id (from search_courts or get_facility_details). The date is optional and defaults to today where the facility is (tomorrow when nothing is left today); sport defaults to the facility's first sport.
| Parameter | Type | Description |
|---|---|---|
facilityId * | string | The facility's id (a UUID), as returned by search_courts or get_facility_details. |
date | string | Day to list, YYYY-MM-DD. Defaults to today where the facility is. |
sport | string | Sport slug or name, e.g. "pickleball" or "Table Tennis". Defaults to the facility's first sport. |
record_click Record Click
Records that someone followed a link on a CourtsApp card, for CourtsApp's own click statistics. The CourtsApp cards call this when a link is opened; it is not needed to answer a user and does not need to be called. It keeps the kind of link, the club's id, the destination's host and path and its utm_* tags, and which assistant showed the card, and nothing about the person.
| Parameter | Type | Description |
|---|---|---|
kind * | string | What kind of link it was. |
url * | string | The link that was opened (http or https). |
facilityId | string | The facility's id (a UUID), when the card knows it. |
record_card_error Record Card Error
Records that a CourtsApp card hit an error in its own code, so CourtsApp can fix the card. The CourtsApp cards call this on their own; it is not needed to answer a user and does not need to be called. It keeps which card, the kind of error, the error's message and where in the card it happened, and which assistant showed the card, and nothing about the person.
| Parameter | Type | Description |
|---|---|---|
card * | string | Which card hit the error. |
kind * | string | An error a script threw, or a promise nobody caught. |
message * | string | The error's message. |
at | string | Where in the card's script it happened (line and column), when known. |
get_coach_profile Coach Profile
The coach card calls this when someone opens a coach's profile. It is not needed to find a coach, which search_lessons does. Read-only: it returns the bio, the places, the lesson lengths and the cancellation policy. It does not return a price.
| Parameter | Type | Description |
|---|---|---|
listingId * | string | The coach's listingId from search_lessons. |