changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "description": "MYOPL structured response for prepare_pickleball_browse.",
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "status": {
+ "enum": [
+ "results",
+ "no_results"
+ ]
+ }
+ }
+ },
+ "then": {
+ "required": [
+ "selection",
+ "results",
+ "has_more"
+ ]
+ }
+ }
+ ],
+ "properties": {
+ "choices": {
+ "description": "Available MYOPL Browse categories.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "browse_section": {
+ "description": "Corresponding MYOPL Browse section.",
+ "enum": [
+ "courts",
+ "clubs",
+ "opls"
+ ],
+ "type": "string"
+ },
+ "id": {
+ "description": "Category accepted by the browse tool.",
+ "enum": [
+ "courts",
+ "clubs",
+ "sessions"
+ ],
+ "type": "string"
+ },
+ "label": {
+ "description": "Localized category label.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "label",
+ "browse_section"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "guidance": {
+ "description": "Instructions for citing and interpreting directory listings.",
+ "type": "string"
+ },
+ "has_more": {
+ "description": "More listings matched than were returned; narrow the location to refine results.",
+ "type": "boolean"
+ },
+ "language": {
+ "description": "Language of the response.",
+ "enum": [
+ "en",
+ "es"
+ ],
+ "type": "string"
+ },
+ "location": {
+ "description": "Normalized city, state or country supplied by the caller.",
+ "type": "string"
+ },
+ "results": {
+ "description": "Public listings for the selected category.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "access": {
+ "description": "Published listing access; null means unspecified.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "amenities": {
+ "description": "Amenities recorded for the location.",
+ "items": {
+ "description": "Published amenity identifier.",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "city": {
+ "description": "Published listing city; null means unspecified.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "country": {
+ "description": "Published listing country; null means unspecified.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "court_count": {
+ "description": "Published court count. Zero is a known zero count.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "description": {
+ "description": "Published listing description; null means unspecified.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "entity_type": {
+ "description": "Type of public directory listing.",
+ "enum": [
+ "location",
+ "club",
+ "league"
+ ],
+ "type": "string"
+ },
+ "indoor_courts": {
+ "description": "Published indoor courts. Zero is a known zero count.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "leaderboard_status": {
+ "const": "not_published",
+ "description": "Whether public standings are supplied.",
+ "type": "string"
+ },
+ "leaderboard_url": {
+ "description": "Public standings URL when provided; null means none was returned.",
+ "type": "null"
+ },
+ "location": {
+ "additionalProperties": false,
+ "description": "Public location linked to this league.",
+ "properties": {
+ "city": {
+ "description": "City.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "country": {
+ "description": "Country.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "name": {
+ "description": "Public court or location name.",
+ "type": "string"
+ },
+ "public_url": {
+ "description": "MYOPL location page.",
+ "format": "uri",
+ "type": "string"
+ },
+ "region": {
+ "description": "State or region.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "city",
+ "region",
+ "country",
+ "public_url"
+ ],
+ "type": "object"
+ },
+ "locations": {
+ "description": "Public locations linked to this club.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "city": {
+ "description": "City.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "country": {
+ "description": "Country.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "name": {
+ "description": "Public court or location name.",
+ "type": "string"
+ },
+ "public_url": {
+ "description": "MYOPL location page.",
+ "format": "uri",
+ "type": "string"
+ },
+ "region": {
+ "description": "State or region.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "city",
+ "region",
+ "country",
+ "public_url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "description": "Listing display name.",
+ "type": "string"
+ },
+ "nets": {
+ "description": "Published listing nets; null means unspecified.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "outdoor_courts": {
+ "description": "Published outdoor courts. Zero is a known zero count.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "public_url": {
+ "description": "MYOPL listing page to cite.",
+ "format": "uri",
+ "type": "string"
+ },
+ "region": {
+ "description": "Published listing region; null means unspecified.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "session_availability_checked": {
+ "const": false,
+ "description": "Whether live session availability was checked for this listing.",
+ "type": "boolean"
+ },
+ "slug": {
+ "description": "Public listing identifier.",
+ "type": "string"
+ },
+ "source": {
+ "const": "MYOPL",
+ "description": "Source platform.",
+ "type": "string"
+ },
+ "sport_type": {
+ "const": "pickleball",
+ "description": "Listing sport.",
+ "type": "string"
+ },
+ "surface": {
+ "description": "Published listing surface; null means unspecified.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "entity_type",
+ "sport_type",
+ "slug",
+ "name",
+ "public_url",
+ "source"
+ ],
+ "type": "object"
+ },
+ "maxItems": 5,
+ "type": "array"
+ },
+ "selection": {
+ "additionalProperties": false,
+ "description": "Present when a category was selected.",
+ "properties": {
+ "browse_section": {
+ "description": "MYOPL Browse section.",
+ "enum": [
+ "courts",
+ "clubs",
+ "opls"
+ ],
+ "type": "string"
+ },
+ "category": {
+ "description": "Selected category.",
+ "enum": [
+ "courts",
+ "clubs",
+ "sessions",
+ "leaderboards"
+ ],
+ "type": "string"
+ },
+ "query": {
+ "description": "Normalized location used for this search.",
+ "type": "string"
+ },
+ "sport": {
+ "const": "pickleball",
+ "description": "Selected sport.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "category",
+ "browse_section",
+ "query",
+ "sport"
+ ],
+ "type": "object"
+ },
+ "source": {
+ "const": "MYOPL",
+ "description": "Source platform.",
+ "type": "string"
+ },
+ "source_url": {
+ "description": "MYOPL court and club directory.",
+ "format": "uri",
+ "type": "string"
+ },
+ "spoken_reply": {
+ "description": "Browse choices or result summary with MYOPL links.",
+ "type": "string"
+ },
+ "sport": {
+ "const": "pickleball",
+ "description": "Sport being searched.",
+ "type": "string"
+ },
+ "status": {
+ "description": "Whether a category choice is needed or a search returned listings.",
+ "enum": [
+ "choice_required",
+ "results",
+ "no_results"
+ ],
+ "type": "string"
+ },
+ "version": {
+ "const": 1,
+ "description": "Browse response format version.",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "version",
+ "location",
+ "language",
+ "sport",
+ "spoken_reply",
+ "choices",
+ "status",
+ "guidance",
+ "source",
+ "source_url"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "description": "Tool execution or argument error; the enclosing result has isError set to true.",
+ "type": "string"
+ },
+ "myopl_url": {
+ "description": "MYOPL website.",
+ "format": "uri",
+ "type": "string"
+ },
+ "source": {
+ "const": "MYOPL",
+ "description": "Source platform.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "error",
+ "source",
+ "myopl_url"
+ ],
+ "type": "object"
+ }
+ ],
+ "type": "object"
+}