{
  "tool_id": "roth_vs_traditional_ira",
  "slug": "roth-vs-traditional-ira-calculator",
  "path": "/roth-vs-traditional-ira-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/roth-vs-traditional-ira-calculator/?<params>",
  "sample_input": {
    "tool": "roth_vs_traditional_ira",
    "annual_contribution_budget": 7000,
    "current_tax_rate_percent": 24,
    "retirement_tax_rate_percent": 18,
    "years": 25,
    "annual_return_percent": 7
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "annual_contribution_budget": {
        "type": "integer"
      },
      "current_tax_rate_percent": {
        "type": "integer"
      },
      "retirement_tax_rate_percent": {
        "type": "integer"
      },
      "years": {
        "type": "integer"
      },
      "annual_return_percent": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "annual_contribution_budget",
      "current_tax_rate_percent",
      "retirement_tax_rate_percent",
      "years",
      "annual_return_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": {
          "annual_contribution_budget": {
            "type": "number"
          },
          "current_tax_rate_percent": {
            "type": "number"
          },
          "retirement_tax_rate_percent": {
            "type": "number"
          },
          "years": {
            "type": "number"
          },
          "annual_return_percent": {
            "type": "number"
          }
        }
      }
    }
  }
}
