{
  "tool_id": "student_loan_repayment",
  "slug": "student-loan-repayment-planner",
  "path": "/student-loan-repayment-planner/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/student-loan-repayment-planner/?<params>",
  "sample_input": {
    "tool": "student_loan_repayment",
    "principal": 42000,
    "apr_percent": 6.2,
    "monthly_payment": 520,
    "extra_payment": 80,
    "autopay_discount_percent": 0.25
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "principal": {
        "type": "integer"
      },
      "apr_percent": {
        "type": "number"
      },
      "monthly_payment": {
        "type": "integer"
      },
      "extra_payment": {
        "type": "integer"
      },
      "autopay_discount_percent": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "principal",
      "apr_percent",
      "monthly_payment",
      "extra_payment",
      "autopay_discount_percent"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "primaryLabel": {
        "type": "string"
      },
      "primaryValue": {
        "type": "number"
      },
      "primaryFormat": {
        "type": "string"
      },
      "summary": {
        "type": "string"
      },
      "metrics": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "label": {
              "type": "string"
            },
            "value": {
              "type": "number"
            },
            "format": {
              "type": "string"
            }
          }
        }
      },
      "warnings": {
        "type": "array",
        "items": {}
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "principal": {
            "type": "number"
          },
          "apr_percent": {
            "type": "number"
          },
          "monthly_payment": {
            "type": "number"
          },
          "extra_payment": {
            "type": "number"
          },
          "autopay_discount_percent": {
            "type": "number"
          }
        }
      }
    }
  }
}
