Skip to main content
Glama

Get School Earnings

scorecard_get_earnings
Read-onlyIdempotent

Institution-level earnings of federally aided undergraduate entrants working and not enrolled, regardless of completion. Reports medians at 6/8/10 years after entry, 6/10-year percentiles, and non-male/male 6-year medians. For graduate program earnings use scorecard_get_programs. years selects API data-file start years (1996–2025), including files without earnings observations. Per-metric availability and official cohort/measurement/dollar context accompany values; unknown metadata stays absent. No re-inflation is performed.

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": {
      "id": "<id>"
    },
    "name": "scorecard_get_earnings"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSchool ID from scorecard_search_schools.
yearsNoOptional API data-file start years from 1996–2025 (e.g. [2003, 2011, 2020]); valid files may lack observations. Repeated years are reported once, in order of first occurrence. Omit or pass [] for snapshot only.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
trendNoHistorical rows by API data-file start year. Present only when nonempty years were supplied.
currentNoMost recent available earnings snapshot.
ope6_idNoProvider OPEID6 identifier, preserving leading zeros.
school_idNoSchool unit ID.
suppressedNoTrue only when every supported current metric has an explicit privacy marker.
school_nameNoInstitution name.
metric_scopeNoEarnings, debt and repayment are pooled at OPEID6; completion is campus-specific.
current_contextNoOfficial latest provenance keyed by metric, independent of returned values.
suppression_noteNoExplains suppression when suppressed=true.
current_availabilityNoAvailability keyed by every supported current earnings metric.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / years / description
      Previous value: -"Optional API data-file start years from 1996–2025 (e.g. [2003, 2011, 2020]); valid files may lack observations. Omit or pass [] for snapshot only."New value: +"Optional API data-file start years from 1996–2025 (e.g. [2003, 2011, 2020]); valid files may lack observations. Repeated years are reported once, in order of first occurrence. Omit or pass [] for snapshot only."
  2. Changed2 schema fields changed
    • addedOutput schema / properties / metric_scope
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Earnings, debt and repayment are pooled at OPEID6; completion is campus-specific.",
      +  "properties": {
      +    "completion": {
      +      "const": "campus",
      +      "description": "Completion is campus-specific.",
      +      "type": "string"
      +    },
      +    "debt": {
      +      "const": "opeid6",
      +      "description": "Debt is OPEID6-pooled.",
      +      "type": "string"
      +    },
      +    "earnings": {
      +      "const": "opeid6",
      +      "description": "Earnings are OPEID6-pooled.",
      +      "type": "string"
      +    },
      +    "repayment": {
      +      "const": "opeid6",
      +      "description": "Repayment is OPEID6-pooled.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "earnings",
      +    "debt",
      +    "repayment",
      +    "completion"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / ope6_id
      Added value: +{
      +  "description": "Provider OPEID6 identifier, preserving leading zeros.",
      +  "type": "string"
      +}
  3. Changed18 schema fields changed
    • changedInput schema / properties / years / description
      Previous value: -"Optional list of cohort entry years for historical trend data (e.g. [2011, 2012, 2013]). Omit for current snapshot."New value: +"Optional API data-file start years from 1996–2025 (e.g. [2003, 2011, 2020]); valid files may lack observations. Omit or pass [] for snapshot only."
    • addedInput schema / properties / years / items / description
      Added value: +"Published API data-file start year (1996–2025)."
    • changedInput schema / properties / years / items / maximum
      Previous value: -9007199254740991New value: +2025
    • changedInput schema / properties / years / items / minimum
      Previous value: --9007199254740991New value: +1996
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "school_id",
      -      "school_name",
      -      "current",
      -      "suppressed"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "school_id",
      +      "school_name",
      +      "current_availability",
      +      "current_context",
      +      "current",
      +      "suppressed"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • removedOutput schema / properties / current / properties / earnings_6yr_female_median
      Removed value: -{
      -  "description": "Median earnings 6 years after entry for female students.",
      -  "type": "number"
      -}
    • addedOutput schema / properties / current / properties / earnings_6yr_non_male_median
      Added value: +{
      +  "description": "Median earnings 6 years after entry for non-male students.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / current_availability
      Added value: +{
      +  "additionalProperties": {
      +    "description": "Provider availability for one supported metric.",
      +    "enum": [
      +      "available",
      +      "unavailable",
      +      "privacy_suppressed"
      +    ],
      +    "type": "string"
      +  },
      +  "description": "Availability keyed by every supported current earnings metric.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / current_context
      Added value: +{
      +  "additionalProperties": {
      +    "additionalProperties": false,
      +    "description": "Official provenance for one metric.",
      +    "properties": {
      +      "data_file_year": {
      +        "description": "Start year of the API data file; not a cohort entry year.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "dollar_year": {
      +        "description": "Verified inflation dollar basis; returned values are not re-inflated.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "entry_cohorts": {
      +        "description": "Verified academic-year entry cohorts.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "measurement_years": {
      +        "description": "Verified calendar years when earnings were measured.",
      +        "items": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "data_file_year"
      +    ],
      +    "type": "object"
      +  },
      +  "description": "Official latest provenance keyed by metric, independent of returned values.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / properties / suppressed / description
      Previous value: -"True when earnings data is suppressed across all time points."New value: +"True only when every supported current metric has an explicit privacy marker."
    • changedOutput schema / properties / trend / description
      Previous value: -"Historical trend rows by cohort entry year. Present only when years parameter was supplied."New value: +"Historical rows by API data-file start year. Present only when nonempty years were supplied."
    • changedOutput schema / properties / trend / items / description
      Previous value: -"Earnings data point for one cohort entry year."New value: +"Earnings observations for one API data file."
    • addedOutput schema / properties / trend / items / properties / availability
      Added value: +{
      +  "additionalProperties": {
      +    "description": "Provider availability for one supported metric.",
      +    "enum": [
      +      "available",
      +      "unavailable",
      +      "privacy_suppressed"
      +    ],
      +    "type": "string"
      +  },
      +  "description": "Availability of the supported historical medians.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / trend / items / properties / context
      Added value: +{
      +  "additionalProperties": {
      +    "additionalProperties": false,
      +    "description": "Official provenance for one metric.",
      +    "properties": {
      +      "data_file_year": {
      +        "description": "Start year of the API data file; not a cohort entry year.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "dollar_year": {
      +        "description": "Verified inflation dollar basis; returned values are not re-inflated.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "entry_cohorts": {
      +        "description": "Verified academic-year entry cohorts.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "measurement_years": {
      +        "description": "Verified calendar years when earnings were measured.",
      +        "items": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "data_file_year"
      +    ],
      +    "type": "object"
      +  },
      +  "description": "Verified per-metric provenance; unknown metadata omitted.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / properties / trend / items / properties / earnings_10yr_median / description
      Previous value: -"Median earnings 10 years after entry for this cohort."New value: +"Median earnings 10 years after entry reported in this data file."
    • changedOutput schema / properties / trend / items / properties / earnings_6yr_median / description
      Previous value: -"Median earnings 6 years after entry for this cohort."New value: +"Median earnings 6 years after entry reported in this data file."
    • changedOutput schema / properties / trend / items / properties / year / description
      Previous value: -"Cohort entry year."New value: +"API data-file start year."
    • changedOutput schema / properties / trend / items / required
      Previous value: -[
      -  "year"
      -]New value: +[
      +  "year",
      +  "availability",
      +  "context"
      +]
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent/openWorld annotations, the description discloses material behavioral caveats: data files may exist without earnings observations, unknown metadata is omitted rather than fabricated, official cohort/measurement/dollar context accompanies values, and no re-inflation is applied. These are non-obvious traits an agent needs to interpret results and set expectations about missing data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded: what the resource is, then what metrics are returned, then the sibling alternative, then argument and data caveats. Sentences are dense but each carries distinct information; 'No re-inflation is performed' is terse to the point of being cryptic but still earns its place as a data-interpretation warning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value structure need not be restated, and the description covers the remaining agent-facing concerns: cohort definition, metric inventory, optional year filtering, missing-observation behavior, and the sibling handoff. Nothing essential for correct invocation or interpretation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description pushes slightly above it by warning that years selects data-file start years 'including files without earnings observations,' a caveat not present in the schema. Much of the rest (repeated years reported once, omit/[] for snapshot only) restates the schema's own text, limiting the added value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource and cohort ('Institution-level earnings of federally aided undergraduate entrants working and not enrolled, regardless of completion') and enumerates exactly which statistics are returned (6/8/10-year medians, 6/10-year percentiles, non-male/male 6-year medians). It also explicitly rules out a sibling with 'For graduate program earnings use scorecard_get_programs,' so an agent can separate the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit alternative and the condition selecting it (graduate program earnings → scorecard_get_programs), plus guidance on the optional years argument ('Omit or pass [] for snapshot only'). It does not address when to prefer scorecard_get_school or scorecard_compare_schools, so the routing guidance is clear but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.