{
  "$schema": "https://webmcp.dev/schemas/manifest-0.1.json",
  "name": "kupczywynajmuj",
  "version": "1.0.0",
  "description": "Deklaratywne narzędzia agentowe dla kalkulatora Kup czy Wynajmuj? (PL).",
  "homepage": "https://kupczywynajmuj.pl/",
  "tools": [
    {
      "name": "calculate_buy_vs_rent",
      "description": "Porównuje całkowity majątek netto scenariuszy zakupu mieszkania na kredyt i wynajmu z inwestowaniem różnicy w horyzoncie N lat. Wszystkie kwoty w PLN.",
      "url": "https://kupczywynajmuj.pl/",
      "method": "GET",
      "form_selector": "form[data-mcp-tool='calculate_buy_vs_rent']",
      "input_schema": {
        "type": "object",
        "properties": {
          "price": { "type": "number", "minimum": 50000, "maximum": 100000000, "description": "Cena mieszkania w PLN" },
          "downPaymentPct": { "type": "number", "minimum": 0, "maximum": 100, "description": "Wkład własny w procentach" },
          "loanRate": { "type": "number", "minimum": 0, "maximum": 30, "description": "Oprocentowanie kredytu w skali roku (%)" },
          "loanYears": { "type": "integer", "minimum": 1, "maximum": 40 },
          "installment": { "enum": ["rowne", "malejace"] },
          "rent": { "type": "number", "minimum": 0, "description": "Miesięczny czynsz najmu (PLN)" },
          "rentGrowth": { "type": "number", "description": "Roczny wzrost czynszu (%)" },
          "appreciation": { "type": "number", "description": "Roczny wzrost wartości nieruchomości (%)" },
          "investReturn": { "type": "number", "description": "Roczna stopa zwrotu z portfela inwestycyjnego (%)" },
          "horizonYears": { "type": "integer", "minimum": 1, "maximum": 40 }
        },
        "required": ["price", "loanYears", "rent", "horizonYears"]
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "buyNet": { "type": "number", "description": "Majątek netto kupującego po horyzoncie (PLN)" },
          "rentNet": { "type": "number", "description": "Majątek netto wynajmującego inwestującego różnicę (PLN)" },
          "verdict": { "enum": ["kupno", "wynajem", "remis"] },
          "breakEvenYear": { "type": ["integer", "null"] }
        }
      }
    },
    {
      "name": "calculate_mortgage_overpayment",
      "description": "Liczy oszczędność odsetkową i skrócenie okresu kredytu hipotecznego przy nadpłatach cyklicznych lub nieregularnych. Obsługuje raty równe/malejące i tryby skróć okres / zmniejsz ratę.",
      "url": "https://kupczywynajmuj.pl/nadplata",
      "method": "GET",
      "form_selector": "form[data-mcp-tool='calculate_mortgage_overpayment']",
      "input_schema": {
        "type": "object",
        "properties": {
          "principal": { "type": "number", "minimum": 1000 },
          "rate": { "type": "number", "minimum": 0, "maximum": 30 },
          "years": { "type": "integer", "minimum": 1, "maximum": 40 },
          "installment": { "enum": ["rowne", "malejace"] },
          "monthlyOverpayment": { "type": "number", "minimum": 0 },
          "mode": { "enum": ["skroc", "zmniejsz"], "description": "skroc = skróć okres, zmniejsz = zmniejsz ratę" }
        },
        "required": ["principal", "rate", "years"]
      }
    }
  ]
}