{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scrubmytext-com/json-schema/scrubmytext-com-quality-card-query-schema.json",
  "title": "QualityCardQuery",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scrubmytext-com-openapi.json#/components/schemas/QualityCardQuery",
  "type": "object",
  "properties": {
    "target_type": {
      "type": "string",
      "enum": [
        "mcp_server",
        "rest_api"
      ]
    },
    "provider_domain": {
      "type": "string",
      "maxLength": 253
    },
    "canonical_endpoint": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048
    },
    "version": {
      "type": "string",
      "maxLength": 120
    },
    "interface_digest": {
      "$ref": "#/$defs/Sha256Digest"
    },
    "task_category": {
      "type": "string",
      "maxLength": 120
    },
    "region": {
      "type": "string",
      "maxLength": 40
    },
    "max_latency_ms": {
      "type": "integer",
      "minimum": 0,
      "maximum": 86400000
    },
    "max_price_micros": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000000000
    },
    "minimum_evidence_class": {
      "type": "string",
      "enum": [
        "E0",
        "E1"
      ]
    }
  },
  "required": [
    "target_type",
    "provider_domain",
    "canonical_endpoint",
    "version",
    "task_category"
  ],
  "additionalProperties": false,
  "$defs": {
    "Sha256Digest": {
      "type": "string",
      "pattern": "^(?:sha256:)?[a-f0-9]{64}$",
      "description": "A lowercase SHA-256 digest, with an optional sha256: prefix."
    }
  }
}