{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adako-ai/json-schema/adako-ai-tool-detail-schema.json",
  "title": "ToolDetail",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adako-ai-openapi.json#/components/schemas/ToolDetail",
  "allOf": [
    {
      "$ref": "#/$defs/ToolSummary"
    },
    {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "read",
            "write"
          ]
        },
        "input_schema": {
          "type": "object",
          "additionalProperties": true
        },
        "required": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  ],
  "$defs": {
    "ToolSummary": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "platform": {
          "type": "string"
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "risk": {
          "type": "string",
          "enum": [
            "read-only",
            "write",
            "destructive-write"
          ]
        },
        "cost": {
          "type": "integer",
          "description": "Tasks charged per call. 0 is never billed."
        },
        "since": {
          "type": [
            "string",
            "null"
          ]
        },
        "call_url": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "title",
        "platform",
        "risk",
        "cost",
        "call_url"
      ]
    }
  }
}