{
 "binding": "mcp",
 "obs_version": "0.9",
 "mcp_revisions": "2025-06-18 or later (outputSchema, structuredContent)",
 "tools": [
  {
   "name": "obs_search_services",
   "title": "Search beauty services (OBS)",
   "description": "Find offerings by OBS code and facets. Returns offerings with a match status and evidence; not appointment availability.",
   "inputSchema": {
    "type": "object",
    "required": [
     "service_code"
    ],
    "properties": {
     "obs_version": {
      "type": "string",
      "description": "informational: the OBS version the sender speaks (0.9); any value is accepted"
     },
     "service_code": {
      "type": "string",
      "pattern": "^(0[1-9]|[1-9][0-9])(\\.(0[1-9]|[1-9][0-9])){0,2}$",
      "description": "An OBS code: two digits per level, 00 reserved; a string, never a number."
     },
     "expand": {
      "type": "string",
      "default": "nearby",
      "description": "how far to look: exact | narrower | nearby (exact, narrower, broader, sibling) | category; unknown values are read as nearby"
     },
     "include_descendants": {
      "type": "boolean",
      "description": "0.9.0: true reads as expand narrower, false as exact; still accepted"
     },
     "facets": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      },
      "description": "Facet values the line states. A facet left out is unstated, never a wildcard. Unknown facets or values are ignored, never an error.",
      "properties": {
       "line": {
        "type": "string",
        "description": "Kind of line; known values: service, add_on, combo, package, membership, consultation, product, gift_card, fee, class"
       },
       "visit": {
        "type": "string",
        "description": "Visit; known values: full, fill, removal, repair, trial, follow_up"
       },
       "audience": {
        "type": "string",
        "description": "For; known values: any, women, men, kids, teens, seniors"
       },
       "client": {
        "type": "string",
        "description": "Client; known values: any, new, returning"
       },
       "extent": {
        "type": "string",
        "description": "How much; known values: unstated, full, partial, single"
       },
       "length": {
        "type": "string",
        "description": "Hair or nail length; known values: unstated, short, medium, long, extra_long"
       },
       "area": {
        "type": "string",
        "description": "Area; known values: unstated, brows, lip, chin, face, underarms, arms, legs, bikini, brazilian, back, chest, body"
       },
       "level": {
        "type": "string",
        "description": "Professional's level; known values: unstated, junior, stylist, senior, master"
       },
       "basis": {
        "type": "string",
        "description": "Price is; known values: fixed, from, range, per_unit, hourly, free, on_request"
       }
      }
     },
     "location": {
      "type": "object",
      "properties": {
       "query": {
        "type": "string"
       },
       "lat": {
        "type": "number"
       },
       "lng": {
        "type": "number"
       },
       "radius_km": {
        "type": "number",
        "exclusiveMinimum": 0
       }
      }
     },
     "price": {
      "type": "object",
      "required": [
       "currency"
      ],
      "properties": {
       "max": {
        "type": "number",
        "minimum": 0
       },
       "currency": {
        "type": "string",
        "pattern": "^[A-Z]{3}$",
        "description": "ISO 4217"
       },
       "basis": {
        "enum": [
         "fixed",
         "from",
         "range"
        ],
        "default": "fixed"
       }
      }
     },
     "include_uncertain": {
      "type": "boolean",
      "default": true
     },
     "page": {
      "type": "object",
      "properties": {
       "size": {
        "type": "integer",
        "minimum": 1,
        "maximum": 100,
        "default": 20
       },
       "cursor": {
        "type": "string"
       }
      }
     }
    }
   },
   "outputSchema": {
    "type": "object",
    "required": [],
    "properties": {
     "obs_version": {
      "type": "string",
      "description": "informational: the OBS version the sender speaks (0.9); any value is accepted"
     },
     "registry_release": {
      "type": "string"
     },
     "results": {
      "type": "array",
      "items": {
       "description": "One menu line, kept as written, with its OBS reading.",
       "type": "object",
       "required": [
        "provider_id",
        "offering_id",
        "original_label",
        "relation",
        "service_code"
       ],
       "properties": {
        "obs_version": {
         "type": "string",
         "description": "informational: the OBS version the sender speaks (0.9); any value is accepted"
        },
        "registry_release": {
         "type": "string"
        },
        "provider_id": {
         "type": "string",
         "minLength": 1
        },
        "offering_id": {
         "type": "string",
         "minLength": 1
        },
        "original_label": {
         "type": "string",
         "minLength": 1
        },
        "heading": {
         "type": "string"
        },
        "classification": {
         "type": "object",
         "required": [
          "status"
         ],
         "properties": {
          "status": {
           "enum": [
            "placed",
            "unclassified",
            "reserved_domain",
            "out_of_scope"
           ]
          },
          "via": {
           "enum": [
            "line",
            "heading",
            "business",
            "provider"
           ]
          }
         }
        },
        "service_code": {
         "oneOf": [
          {
           "type": "string",
           "pattern": "^(0[1-9]|[1-9][0-9])(\\.(0[1-9]|[1-9][0-9])){0,2}$",
           "description": "An OBS code: two digits per level, 00 reserved; a string, never a number."
          },
          {
           "type": "null"
          }
         ],
         "description": "null when unclassified, out of scope, or a combination (then see also_codes)"
        },
        "also_codes": {
         "type": "array",
         "items": {
          "type": "string",
          "pattern": "^(0[1-9]|[1-9][0-9])(\\.(0[1-9]|[1-9][0-9])){0,2}$",
          "description": "An OBS code: two digits per level, 00 reserved; a string, never a number."
         },
         "description": "a combination: every service the line names"
        },
        "concept_uri": {
         "type": "string",
         "format": "uri"
        },
        "provider_extension": {
         "type": "object",
         "required": [
          "namespace",
          "code",
          "label"
         ],
         "description": "A provider's own offering under a canonical code. Its identity is (namespace, service_code, code); it never redefines the concept, and a client that doesn't know it uses service_code.",
         "properties": {
          "namespace": {
           "type": "string",
           "format": "uri",
           "pattern": "^https://[^/]+",
           "description": "An https address on a domain the provider controls"
          },
          "code": {
           "type": "string",
           "pattern": "^(0[1-9]|[1-9][0-9])$"
          },
          "label": {
           "type": "string",
           "minLength": 1
          }
         }
        },
        "facets": {
         "type": "object",
         "additionalProperties": {
          "type": "string"
         },
         "description": "Facet values the line states. A facet left out is unstated, never a wildcard. Unknown facets or values are ignored, never an error.",
         "properties": {
          "line": {
           "type": "string",
           "description": "Kind of line; known values: service, add_on, combo, package, membership, consultation, product, gift_card, fee, class"
          },
          "visit": {
           "type": "string",
           "description": "Visit; known values: full, fill, removal, repair, trial, follow_up"
          },
          "audience": {
           "type": "string",
           "description": "For; known values: any, women, men, kids, teens, seniors"
          },
          "client": {
           "type": "string",
           "description": "Client; known values: any, new, returning"
          },
          "extent": {
           "type": "string",
           "description": "How much; known values: unstated, full, partial, single"
          },
          "length": {
           "type": "string",
           "description": "Hair or nail length; known values: unstated, short, medium, long, extra_long"
          },
          "area": {
           "type": "string",
           "description": "Area; known values: unstated, brows, lip, chin, face, underarms, arms, legs, bikini, brazilian, back, chest, body"
          },
          "level": {
           "type": "string",
           "description": "Professional's level; known values: unstated, junior, stylist, senior, master"
          },
          "basis": {
           "type": "string",
           "description": "Price is; known values: fixed, from, range, per_unit, hourly, free, on_request"
          }
         }
        },
        "price": {
         "type": "object",
         "required": [
          "currency"
         ],
         "properties": {
          "amount": {
           "type": "number",
           "minimum": 0,
           "description": "fixed: the price; from: the lowest; per_unit / hourly: per unit or hour"
          },
          "max": {
           "type": "number",
           "minimum": 0,
           "description": "range: the highest"
          },
          "currency": {
           "type": "string",
           "pattern": "^[A-Z]{3}$",
           "description": "ISO 4217"
          },
          "basis": {
           "enum": [
            "fixed",
            "from",
            "range",
            "per_unit",
            "hourly",
            "free",
            "on_request",
            "unstated"
           ]
          },
          "unit": {
           "type": "string",
           "description": "per_unit: what one unit is (unit, strand, area, syringe...); hourly: hour"
          },
          "quantity": {
           "type": "integer",
           "minimum": 1,
           "description": "package: how many visits or sessions"
          },
          "promotional": {
           "type": "boolean",
           "description": "a promotional or introductory price"
          },
          "additional_charges": {
           "type": "array",
           "items": {
            "type": "object",
            "required": [
             "label",
             "amount"
            ],
            "properties": {
             "label": {
              "type": "string"
             },
             "amount": {
              "type": "number",
              "minimum": 0
             },
             "mandatory": {
              "type": "boolean"
             }
            }
           }
          }
         }
        },
        "duration": {
         "type": "object",
         "properties": {
          "minutes": {
           "type": "integer",
           "minimum": 1
          },
          "processing_minutes": {
           "type": "integer",
           "minimum": 0
          }
         }
        },
        "requires": {
         "type": "array",
         "items": {
          "enum": [
           "consultation",
           "patch_test",
           "prior_visit"
          ]
         }
        },
        "delivery": {
         "type": "array",
         "items": {
          "enum": [
           "in_salon",
           "mobile",
           "at_home",
           "online"
          ]
         }
        },
        "includes": {
         "type": "array",
         "items": {
          "type": "string",
          "pattern": "^(0[1-9]|[1-9][0-9])(\\.(0[1-9]|[1-9][0-9])){0,2}$",
          "description": "An OBS code: two digits per level, 00 reserved; a string, never a number."
         },
         "description": "concepts the offering explicitly includes (a toner with highlights)"
        },
        "charged_separately": {
         "type": "array",
         "items": {
          "type": "string",
          "pattern": "^(0[1-9]|[1-9][0-9])(\\.(0[1-9]|[1-9][0-9])){0,2}$",
          "description": "An OBS code: two digits per level, 00 reserved; a string, never a number."
         }
        },
        "price_group": {
         "oneOf": [
          {
           "type": "string"
          },
          {
           "type": "null"
          }
         ],
         "description": "code|facet:value|...; null when the price is never compared"
        },
        "evidence": {
         "type": "array",
         "items": {
          "type": "object",
          "required": [
           "source_type",
           "scope",
           "observed_at"
          ],
          "properties": {
           "source_type": {
            "enum": [
             "provider_menu",
             "booking_page",
             "professional_page",
             "salon_page",
             "professional_statement",
             "provider_api",
             "other"
            ]
           },
           "scope": {
            "enum": [
             "business",
             "professional"
            ],
            "description": "business: what the business offers; professional: a named person's own claim"
           },
           "professional_id": {
            "type": "string"
           },
           "source_url": {
            "type": "string",
            "format": "uri"
           },
           "observed_at": {
            "type": "string",
            "format": "date"
           },
           "text": {
            "type": "string",
            "description": "the words as written"
           },
           "claim": {
            "type": "string",
            "description": "explicit (the source says it) or inferred (read from context, such as a heading)"
           }
          }
         }
        },
        "relation": {
         "type": "string",
         "description": "exact | narrower | broader | sibling | same_category; read an unknown value as same_category"
        },
        "fit": {
         "type": "string",
         "description": "full (every asked facet and the price known and met) | partial"
        },
        "match_status": {
         "type": "string",
         "description": "0.9.0: exact | descendant | uncertain | related; kept for older clients"
        },
        "match_notes": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       }
      },
      "description": "each an offering plus match_status and match_notes"
     },
     "answered_as": {
      "oneOf": [
       {
        "type": "string",
        "pattern": "^(0[1-9]|[1-9][0-9])(\\.(0[1-9]|[1-9][0-9])){0,2}$",
        "description": "An OBS code: two digits per level, 00 reserved; a string, never a number."
       },
       {
        "type": "null"
       }
      ],
      "description": "the code the search used (a retired or unknown code answers as its replacement or nearest known parent)"
     },
     "expand": {
      "type": "string"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "what was ignored, assumed or answered differently"
     },
     "unsupported_facets": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "facets asked for that the concept does not have; ignored"
     },
     "next_cursor": {
      "oneOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "availability": {
      "const": "not_included",
      "description": "an offering is not an open appointment"
     },
     "error": {
      "type": "object",
      "required": [
       "code",
       "message"
      ],
      "properties": {
       "code": {
        "type": "string",
        "description": "invalid_request (no usable service_code) or internal; anything else is a note, not an error"
       },
       "message": {
        "type": "string"
       },
       "replaced_by": {
        "type": "array",
        "items": {
         "type": "string",
         "pattern": "^(0[1-9]|[1-9][0-9])(\\.(0[1-9]|[1-9][0-9])){0,2}$",
         "description": "An OBS code: two digits per level, 00 reserved; a string, never a number."
        }
       },
       "supported_versions": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      }
     }
    },
    "oneOf": [
     {
      "required": [
       "results"
      ]
     },
     {
      "required": [
       "error"
      ]
     }
    ],
    "$defs": {}
   },
   "annotations": {
    "readOnlyHint": true,
    "openWorldHint": true
   }
  },
  {
   "name": "obs_capabilities",
   "title": "OBS capabilities",
   "description": "Which OBS versions, registry release, profiles and facets this server supports.",
   "inputSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {}
   },
   "outputSchema": {
    "type": "object",
    "required": [
     "obs_core",
     "registry_release",
     "profiles"
    ],
    "properties": {
     "obs_core": {
      "type": "string",
      "description": "the OBS Core release implemented, e.g. 0.9.0"
     },
     "extensions": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      },
      "propertyNames": {
       "enum": [
        "aesthetics",
        "wellness"
       ]
      },
      "description": "official extensions implemented and their releases, e.g. {\"aesthetics\": \"0.1.0\"}"
     },
     "obs_versions": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "minItems": 1
     },
     "registry_release": {
      "type": "string"
     },
     "profiles": {
      "type": "array",
      "items": {
       "enum": [
        "obs-0.9-l1",
        "obs-0.9-l2",
        "obs-0.9-l3",
        "obs-0.9-l4"
       ]
      }
     },
     "facets": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "include_descendants": {
      "type": "boolean"
     },
     "currencies": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "live_availability": {
      "type": "boolean",
      "description": "true only when backed by the provider"
     },
     "self_test": {
      "type": "string",
      "format": "uri",
      "description": "the published self-test report"
     }
    }
   },
   "annotations": {
    "readOnlyHint": true
   }
  }
 ]
}
