{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://atlas.local/schemas/tool.schema.json",
  "title": "Atlas tool record",
  "type": "object",
  "required": [
    "provider",
    "type",
    "category",
    "status",
    "sources"
  ],
  "properties": {
    "provider": {
      "enum": [
        "openai",
        "anthropic",
        "xai",
        "gemini"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "human name or required `name` field value"
    },
    "type": {
      "type": "string",
      "description": "exact JSON `type` string, versioned where applicable"
    },
    "category": {
      "type": "string",
      "description": "client | anthropic-defined-client | server | hosted | programmatic | mcp | custom | function | toolset"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "compatible_models": {
      "type": [
        "array",
        "string",
        "null"
      ]
    },
    "compatible_endpoints": {
      "type": [
        "array",
        "null"
      ]
    },
    "parameters_schema": {},
    "tool_choice_support": {},
    "parallel": {
      "$ref": "common.schema.json#/$defs/tristate"
    },
    "streaming_events": {
      "type": [
        "array",
        "null"
      ]
    },
    "result_shape": {},
    "billing": {},
    "limitations": {},
    "security": {},
    "beta_header": {
      "type": [
        "string",
        "array",
        "null"
      ]
    },
    "status": {
      "type": "array",
      "items": {
        "$ref": "common.schema.json#/$defs/status"
      }
    },
    "examples": {
      "type": [
        "object",
        "null"
      ]
    },
    "verification": {
      "$ref": "common.schema.json#/$defs/verification"
    },
    "sources": {
      "type": "array",
      "items": {
        "$ref": "common.schema.json#/$defs/source"
      }
    }
  }
}
