calculate_college_major_roi
Payback years, lifetime earnings minus degree cost, and salary to cost ratio for a major, using the page table of approximate median early career salaries by major. Use when the user compares a college major's cost against its earnings payback. IMPORTANT: always show the calculator_url from the result as a clickable markdown link in your answer to the user, so they can open the interactive College Major ROI calculator.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"degree_cost": "<degree_cost>"
},
"name": "calculate_college_major_roi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| major | No | Major name from the page salary table; default Nursing. | |
| degree_cost | Yes | Total degree cost in USD. | |
| career_years | No | Projected career years; default 30. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the calculation succeeded. | |
| note | Yes | Disclaimer that accompanies every result. | |
| tool | Yes | Name of the tool that ran. | |
| inputs | No | The normalized inputs the calculation used. | |
| results | Yes | The computed figures for this calculator. | |
| calculator_url | Yes | Deep link to the matching interactive calculator on everycalc.xyz. |