{
  "schema_version": "1.0",
  "name": "unit-converter-agricultural",
  "display_name": "Unit Converter (Agricultural & Construction)",
  "description": "Converts between units of length, area, weight, volume, temperature, agricultural density (kg/hectare, lbs/acre, bushels/acre by crop), and construction materials (board-feet, cubic yards of concrete, cords of wood). Specializes in agricultural and construction units rarely covered by general converters. Fully self-contained — pure math, no external API.",
  "endpoint": "https://bacapi-unit-converter-api.workers.dev/convert",
  "method": "GET",
  "payment": {
    "protocol": "x402",
    "network":  "base",
    "currency": "USDC",
    "amount":   "0.05"
  },
  "parameters": {
    "value":    { "type": "number", "required": true,  "description": "Numeric value to convert" },
    "from":     { "type": "string", "required": true,  "description": "Source unit (see supported units)" },
    "to":       { "type": "string", "required": true,  "description": "Target unit" },
    "category": { "type": "string", "required": false, "description": "Optional: length|area|weight|volume|temperature|ag-density|construction" }
  },
  "supported_units": {
    "length":      ["m","km","cm","mm","ft","in","yd","mi"],
    "area":        ["sqm","sqft","sqyd","sqmi","acre","hectare","sqkm"],
    "weight":      ["kg","g","lb","oz","ton","tonne","long-ton","bushel-wheat","bushel-corn","bushel-soybeans","bushel-oats","bushel-barley","cwt"],
    "volume":      ["l","ml","gal","qt","pt","cup","floz","tbsp","tsp","cubic-ft","cubic-m","cubic-yd","barrel","cord","face-cord"],
    "temperature": ["c","f","k","celsius","fahrenheit","kelvin"],
    "ag-density":  ["kg-ha","lb-acre","ton-acre","bu-acre-wheat","bu-acre-corn","bu-acre-soybeans"],
    "construction":["board-foot","bf","cubic-yd-concrete","cy","cubic-ft-concrete","bag-80lb"]
  },
  "example_request": "GET /convert?value=60&from=bushel-wheat&to=kg",
  "example_response": {
    "data": {
      "input":    { "value": 60, "unit": "bushel-wheat" },
      "output":   { "value": 1632.93, "unit": "kg" },
      "category": "weight",
      "formula":  "60 bushel-wheat = 1632.93 kg"
    },
    "meta": { "source": "self-contained", "priced_at": "0.05 USDC" }
  },
  "tags": ["units","conversion","agriculture","farming","construction","bushels","acres","board-feet","cooking","metric"],
  "category": "utilities"
}
