{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "get_master_data_relationships tool input",
  "description": "Input for the paid fetch of the relationship graph around one golden record, priced by traversal depth. Mirrors GET /v1/master-data/entities/{entity_type}/{record_id}/relationships.",
  "type": "object",
  "required": [
    "entity_type",
    "record_id"
  ],
  "additionalProperties": false,
  "properties": {
    "entity_type": {
      "$ref": "#/$defs/entityType"
    },
    "record_id": {
      "type": "string",
      "minLength": 1,
      "description": "Golden-record identifier within the entity domain."
    },
    "depth": {
      "type": "integer",
      "enum": [
        1,
        2,
        3
      ],
      "default": 1,
      "description": "Traversal depth. Each depth is a separately priced tier."
    }
  },
  "$defs": {
    "entityType": {
      "description": "One of the v1 entity domains. customer, asset, and person are closed Operator decisions, not gaps; reference data is served by get_reference_data.",
      "enum": [
        "supplier",
        "location",
        "organization"
      ]
    }
  }
}
