{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "name": "PlantAR Permaculture Planner",
  "description": "Progressive WebXR outdoor permaculture landscape design and ecological zone planning assistant.",
  "version": "1.0.0",
  "url": "https://plantar.creuzer.com",
  "protocolVersion": "2024-11-05",
  "tools": [
    {
      "name": "validatePermaculturePlacement",
      "description": "Validates proposed plant coordinates against permaculture ecological rules (Zone 0 foundation clearance, Type 1 errors, companion guild stacking, canopy overlap, and elevation depression waterlogging).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "plantId": {
            "type": "string",
            "description": "Unique species identifier from catalog (e.g., 'acer-rubrum', 'malus-domestica-dwarf', 'salvia-rosmarinus')."
          },
          "position": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 3,
            "maxItems": 3,
            "description": "3D Cartesian ground coordinates in meters: [x, y, z] relative to Zone 0 origin."
          }
        },
        "required": [
          "plantId",
          "position"
        ]
      }
    },
    {
      "name": "listPermacultureSpecies",
      "description": "Lists available plant species in the PlantAR permaculture catalog with guild layers, spread dimensions, and zone recommendations.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "layer": {
            "type": "string",
            "description": "Optional layer filter: 'canopy', 'understory', 'shrub', 'herbaceous', 'groundcover', or 'all'."
          }
        }
      }
    },
    {
      "name": "encodeSitePlanUrl",
      "description": "Encodes placed permaculture elements into a compressed URL hash string for cross-platform WebXR / Android AR handoff.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "origin": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "Zone 0 origin coordinates [x, y, z]"
          },
          "elements": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "List of placed species instances"
          }
        },
        "required": [
          "origin",
          "elements"
        ]
      }
    }
  ]
}