{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zarq-ai/json-schema/zarq-ai-discover-request-schema.json",
  "title": "DiscoverRequest",
  "description": "What an agent sends to find other agents.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zarq-ai-openapi.json#/components/schemas/DiscoverRequest",
  "properties": {
    "need": {
      "type": "string",
      "title": "Need",
      "description": "Natural language description of what you need"
    },
    "category": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Category",
      "description": "Filter by category"
    },
    "protocols": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Protocols",
      "description": "Required protocols (mcp, a2a, rest)"
    },
    "min_quality": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Min Quality",
      "description": "Minimum trust score 0-100",
      "default": 0.0
    },
    "max_results": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Results",
      "description": "Max results (capped at 10)",
      "default": 10
    }
  },
  "type": "object",
  "required": [
    "need"
  ]
}