{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentsjunction-com/json-schema/agentsjunction-com-agent-detail-schema.json",
  "title": "AgentDetail",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentsjunction-com-openapi.json#/components/schemas/AgentDetail",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "ownerHandle": {
          "type": [
            "string",
            "null"
          ]
        },
        "providerUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "endpointUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "documentationUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "iconUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "defaultInputModes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "defaultOutputModes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "agentCardUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string"
        },
        "signature": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string"
            },
            "keyId": {
              "type": [
                "string",
                "null"
              ]
            },
            "algorithm": {
              "type": [
                "string",
                "null"
              ]
            },
            "checkedAt": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "status",
            "keyId",
            "algorithm",
            "checkedAt"
          ],
          "additionalProperties": false
        },
        "skills": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "skill": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "state": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "evaluationCount": {
                "type": "number"
              }
            },
            "required": [
              "skill",
              "name",
              "state",
              "description",
              "tags",
              "evaluationCount"
            ],
            "additionalProperties": false
          }
        },
        "protocols": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "protocol": {
                "type": "string"
              },
              "protocolVersion": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": "string"
              },
              "isPreferred": {
                "type": "boolean"
              }
            },
            "required": [
              "protocol",
              "protocolVersion",
              "url",
              "isPreferred"
            ],
            "additionalProperties": false
          }
        },
        "createdAt": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "discoverySourceUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "resourceType": {
          "type": "string",
          "enum": [
            "agent",
            "mcp-server"
          ]
        },
        "callable": {
          "type": "boolean"
        },
        "runtime": {
          "type": "object",
          "properties": {
            "callable": {
              "type": "boolean"
            },
            "protocols": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "callable",
            "protocols"
          ],
          "additionalProperties": false
        },
        "interfaces": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "protocol": {
                "type": "string"
              },
              "protocolVersion": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "transport": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "package": {
                "type": "string"
              },
              "registryType": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            },
            "required": [
              "protocol"
            ],
            "additionalProperties": false
          }
        },
        "profile": {
          "type": "object",
          "properties": {
            "apiVersion": {
              "type": "string",
              "const": "1"
            },
            "schemaVersion": {
              "type": "string",
              "const": "1"
            },
            "id": {
              "type": "string"
            },
            "resourceType": {
              "type": "string",
              "const": "agent"
            },
            "canonicalUrl": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "interfaces": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "protocol": {
                    "type": "string"
                  },
                  "protocolVersion": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "transport": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "package": {
                    "type": "string"
                  },
                  "registryType": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "protocol"
                ],
                "additionalProperties": false
              }
            },
            "operations": {
              "type": "object",
              "properties": {
                "resourceType": {
                  "type": "string",
                  "enum": [
                    "agent",
                    "mcp-server"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "unknown",
                    "online",
                    "degraded",
                    "offline"
                  ]
                },
                "lastCheckedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "lastSuccessfulCheck": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "latencyMs": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "consecutiveFailures": {
                  "type": "number"
                },
                "isStale": {
                  "type": "boolean"
                },
                "checks": {
                  "type": "object",
                  "properties": {
                    "endpointReachable": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "protocolValid": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "agentCardValid": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "mcpHandshakeValid": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "endpointReachable",
                    "protocolValid",
                    "agentCardValid",
                    "mcpHandshakeValid"
                  ],
                  "additionalProperties": false
                },
                "lastSeen": {
                  "type": "null"
                },
                "lastSuccessfulInteraction": {
                  "type": "null"
                },
                "lastHealthCheck": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "type",
                    "url"
                  ],
                  "additionalProperties": false
                },
                "observedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "resourceType",
                "name",
                "status",
                "lastCheckedAt",
                "lastSuccessfulCheck",
                "latencyMs",
                "consecutiveFailures",
                "isStale",
                "checks",
                "lastSeen",
                "lastSuccessfulInteraction",
                "lastHealthCheck",
                "source",
                "observedAt"
              ],
              "additionalProperties": false
            },
            "security": {
              "type": "null"
            },
            "timestamps": {
              "type": "object",
              "properties": {
                "createdAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "updatedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "observedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "createdAt",
                "updatedAt",
                "observedAt"
              ],
              "additionalProperties": false
            },
            "compatibility": {
              "type": "object",
              "properties": {
                "serverVersion": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "protocolVersions": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "protocol": {
                        "type": "string"
                      },
                      "version": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "protocol",
                      "version"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "serverVersion",
                "protocolVersions"
              ],
              "additionalProperties": false
            },
            "capabilities": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "state": {
                    "type": "string"
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "evaluationCount": {
                    "type": "number"
                  },
                  "id": {
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "state",
                  "description",
                  "tags",
                  "evaluationCount",
                  "id"
                ],
                "additionalProperties": false
              }
            },
            "identity": {
              "type": "object",
              "properties": {
                "ownerHandle": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "providerUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "agentCardUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "source": {
                  "type": "string"
                }
              },
              "required": [
                "ownerHandle",
                "providerUrl",
                "agentCardUrl",
                "source"
              ],
              "additionalProperties": false
            },
            "verification": {
              "type": "object",
              "properties": {
                "identity": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "keyId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "algorithm": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "checkedAt": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "status",
                    "keyId",
                    "algorithm",
                    "checkedAt"
                  ],
                  "additionalProperties": false
                },
                "capabilities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "skill": {
                        "type": "string"
                      },
                      "state": {
                        "type": "string"
                      },
                      "evaluationCount": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "skill",
                      "state",
                      "evaluationCount"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "identity",
                "capabilities"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "apiVersion",
            "schemaVersion",
            "id",
            "resourceType",
            "canonicalUrl",
            "name",
            "description",
            "interfaces",
            "operations",
            "security",
            "timestamps",
            "compatibility",
            "capabilities",
            "identity",
            "verification"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "name",
        "title",
        "description",
        "ownerHandle",
        "providerUrl",
        "endpointUrl",
        "documentationUrl",
        "iconUrl",
        "defaultInputModes",
        "defaultOutputModes",
        "agentCardUrl",
        "status",
        "signature",
        "skills",
        "protocols",
        "createdAt",
        "updatedAt",
        "source",
        "discoverySourceUrl",
        "resourceType",
        "callable",
        "runtime",
        "interfaces",
        "profile"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}