{
  "tool_id": "subscription_audit",
  "slug": "subscription-audit-calculator",
  "path": "/subscription-audit-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/subscription-audit-calculator/?<params>",
  "sample_input": {
    "tool": "subscription_audit",
    "subscriptions": [
      {
        "id": "sub-1",
        "name": "Streaming",
        "monthly_cost": 15,
        "uses_per_month": 4,
        "category": "Entertainment"
      }
    ],
    "annual_return_percent": 6,
    "analysis_years": 10
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "subscriptions": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "monthly_cost": {
              "type": "integer"
            },
            "uses_per_month": {
              "type": "integer"
            },
            "category": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name",
            "monthly_cost",
            "uses_per_month",
            "category"
          ]
        }
      },
      "annual_return_percent": {
        "type": "integer"
      },
      "analysis_years": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "subscriptions",
      "annual_return_percent",
      "analysis_years"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "totalMonthlySpend": {
        "type": "number"
      },
      "totalAnnualSpend": {
        "type": "number"
      },
      "investedInsteadFutureValueTotal": {
        "type": "number"
      },
      "rankedSubscriptions": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "category": {
              "type": "string"
            },
            "monthlyCost": {
              "type": "number"
            },
            "annualCost": {
              "type": "number"
            },
            "usesPerMonth": {
              "type": "number"
            },
            "costPerUse": {
              "type": "number"
            },
            "investedInsteadFutureValue": {
              "type": "number"
            },
            "priorityScore": {
              "type": "number"
            }
          }
        }
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "annualReturnPercent": {
            "type": "number"
          },
          "analysisYears": {
            "type": "number"
          },
          "subscriptions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "monthlyCost": {
                  "type": "number"
                },
                "usesPerMonth": {
                  "type": "number"
                },
                "category": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "warnings": {
        "type": "array",
        "items": {}
      }
    }
  }
}
