{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/teardrop-dev/json-schema/teardrop-dev-create-org-tool-request-schema.json",
  "title": "CreateOrgToolRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/teardrop-dev-openapi.json#/components/schemas/CreateOrgToolRequest",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "pattern": "^[a-z][a-z0-9_]*$",
      "title": "Name"
    },
    "description": {
      "type": "string",
      "maxLength": 500,
      "minLength": 1,
      "title": "Description"
    },
    "input_schema": {
      "additionalProperties": true,
      "type": "object",
      "title": "Input Schema",
      "description": "JSON Schema for tool input parameters"
    },
    "output_schema": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Schema",
      "description": "Optional JSON Schema for tool output"
    },
    "webhook_url": {
      "type": "string",
      "maxLength": 2048,
      "title": "Webhook Url"
    },
    "webhook_method": {
      "type": "string",
      "const": "GET",
      "title": "Webhook Method",
      "default": "GET"
    },
    "auth_header_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Auth Header Name"
    },
    "auth_header_value": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 4096
        },
        {
          "type": "null"
        }
      ],
      "title": "Auth Header Value"
    },
    "timeout_seconds": {
      "type": "integer",
      "maximum": 30.0,
      "minimum": 1.0,
      "title": "Timeout Seconds",
      "default": 10
    },
    "publish_as_mcp": {
      "type": "boolean",
      "title": "Publish As Mcp",
      "default": false
    },
    "marketplace_description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Marketplace Description"
    },
    "category": {
      "type": "string",
      "enum": [
        "",
        "defi",
        "search",
        "data",
        "communication",
        "utility"
      ],
      "title": "Category",
      "default": ""
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Tags"
    },
    "base_price_usdc": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 100000000.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Base Price Usdc",
      "description": "Atomic USDC per call; null = platform default, 0 = free."
    }
  },
  "type": "object",
  "required": [
    "name",
    "description",
    "input_schema",
    "webhook_url"
  ]
}