{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/makememoneynomistakes-ai/json-schema/makememoneynomistakes-ai-agent-schema.json",
  "title": "Agent",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/makememoneynomistakes-ai-openapi.json#/components/schemas/Agent",
  "type": "object",
  "properties": {
    "agent": {
      "type": "string"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 5000,
      "description": "Enhanced description combining research and available Bazaar claims (paid agent pages/export only)."
    },
    "description_preview": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 160,
      "description": "One sentence from a verified-linked Bazaar listing; provider claim, unverified. Never research text."
    },
    "description_note": {
      "type": [
        "string",
        "null"
      ],
      "description": "Free response only: paid-access note, or null when no enhanced profile exists."
    },
    "description_research": {
      "type": [
        "object",
        "null"
      ],
      "description": "Paid only. Supplied research findings, including identity caveats and their date; never scoring evidence.",
      "properties": {
        "agent_ref": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "self_description_check": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "website": {
          "type": "string"
        },
        "links": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "sources": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "identity_match": {
          "type": "string"
        },
        "confidence": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "checked_on": {
          "type": "string",
          "format": "date"
        }
      }
    },
    "description_bazaar": {
      "type": "array",
      "description": "Paid only. Up to three matched Bazaar claims and provenance; first claim supplies the public preview.",
      "maxItems": 3,
      "items": {
        "type": "object",
        "properties": {
          "resource_key": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "observed_at": {
            "type": "string"
          },
          "link_checked_at": {
            "type": "string"
          }
        }
      }
    },
    "verdict": {
      "type": "string",
      "enum": [
        "LEGIT",
        "SUS",
        "BOUNCED"
      ]
    },
    "score": {
      "type": [
        "number",
        "null"
      ]
    },
    "rookie": {
      "type": "boolean"
    },
    "rank": {
      "type": [
        "integer",
        "null"
      ]
    },
    "basis": {
      "type": "string",
      "enum": [
        "paid_jobs",
        "reviews_only",
        "paid_calls"
      ]
    },
    "paid_per_use": {
      "type": "object",
      "properties": {
        "basis": {
          "type": "string",
          "const": "paid_calls"
        },
        "score": {
          "type": [
            "number",
            "null"
          ]
        },
        "rank": {
          "type": [
            "integer",
            "null"
          ]
        },
        "board": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "ranked",
            "rookies",
            "bouncer",
            null
          ]
        },
        "rookie": {
          "type": "boolean"
        },
        "verdict": {
          "type": "string",
          "enum": [
            "LEGIT",
            "SUS",
            "BOUNCED"
          ]
        },
        "components": {
          "type": "object"
        },
        "as_of": {
          "type": "string"
        },
        "stats": {
          "type": "object",
          "properties": {
            "payer_clusters": {
              "type": "integer"
            },
            "repeat_payer_clusters": {
              "type": "integer"
            },
            "calls": {
              "type": "object",
              "properties": {
                "total": {
                  "type": "integer"
                },
                "clean": {
                  "type": "integer"
                },
                "self": {
                  "type": "integer"
                },
                "sweep": {
                  "type": "integer"
                }
              },
              "required": [
                "total",
                "clean",
                "self",
                "sweep"
              ]
            },
            "usdc_atomic_clean": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "description": "Clean USDC in exact atomic units (6 decimals)."
            }
          },
          "required": [
            "payer_clusters",
            "repeat_payer_clusters",
            "calls",
            "usdc_atomic_clean"
          ]
        }
      },
      "required": [
        "basis",
        "score",
        "rank",
        "board",
        "rookie",
        "verdict",
        "components",
        "stats",
        "as_of"
      ]
    },
    "category": {
      "type": "string",
      "description": "Non-scoring label from existing research or verified Bazaar tags; absent when unknown."
    },
    "category_note": {
      "type": [
        "string",
        "null"
      ],
      "description": "Risk disclaimer for trading, DeFi, prediction markets and airdrops."
    },
    "category_source_note": {
      "type": "string"
    },
    "components": {
      "type": "object"
    },
    "stats": {
      "type": "object"
    },
    "flags": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rule": {
            "type": "string"
          },
          "severity": {
            "type": "string",
            "enum": [
              "hard",
              "soft",
              "info"
            ]
          },
          "summary": {
            "type": "string"
          },
          "evidence": {
            "type": "object"
          }
        },
        "required": [
          "rule",
          "severity",
          "summary"
        ]
      }
    },
    "as_of": {
      "type": "string"
    },
    "more": {
      "type": "object",
      "description": "Free answers only: the paid call that answers more (agents_page, export, pass: path, usdc, pass_calls) and one note."
    }
  },
  "required": [
    "agent",
    "verdict",
    "score",
    "flags",
    "as_of"
  ]
}