Skip to main content
Glama

FedSalary: official pay data

Compare two US job offers

compare_offers
Read-onlyIdempotent

Two US job offers, each a pay figure in a state or one of the 50 largest metro areas, compared after federal income tax, Social Security, Medicare and state income tax, then after local prices (BEA regional price parities, rent included). Returns take-home pay, take-home at national prices, which offer is worth more and by how much, and the salary each place would need to match the other. With a job, also where each offer sits on the official pay distribution. City and county income taxes are not included.

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": {
      "a_place": "<a_place>",
      "a_pay": "<a_pay>",
      "b_place": "<b_place>",
      "b_pay": "<b_pay>"
    },
    "name": "compare_offers"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobNoOptional job title or slug, to place each offer on the official distribution.
unitNoShared pay period for offers without their own unit.
a_jobNoOccupation for offer A. Overrides the shared job.
a_payYesOffer A's pay.
b_jobNoOccupation for offer B. Overrides the shared job.
b_payYesOffer B's pay.
a_unitNoPay period for offer A.
b_unitNoPay period for offer B.
a_hoursNoPaid hours per week for offer A. Default 40 for hourly pay.
a_placeYesOffer A's place: a US state or large metro area.
a_weeksNoPaid weeks per year for offer A. Default 52 for hourly pay.
b_hoursNoPaid hours per week for offer B. Default 40 for hourly pay.
b_placeYesOffer B's place.
b_weeksNoPaid weeks per year for offer B. Default 52 for hourly pay.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / a_hours
      Added value: +{
      +  "description": "Paid hours per week for offer A. Default 40 for hourly pay.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 168,
      +  "type": "number"
      +}
    • addedInput schema / properties / a_job
      Added value: +{
      +  "description": "Occupation for offer A. Overrides the shared job.",
      +  "type": "string"
      +}
    • addedInput schema / properties / a_unit
      Added value: +{
      +  "description": "Pay period for offer A.",
      +  "enum": [
      +    "year",
      +    "hour"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / a_weeks
      Added value: +{
      +  "description": "Paid weeks per year for offer A. Default 52 for hourly pay.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 53,
      +  "type": "number"
      +}
    • addedInput schema / properties / b_hours
      Added value: +{
      +  "description": "Paid hours per week for offer B. Default 40 for hourly pay.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 168,
      +  "type": "number"
      +}
    • addedInput schema / properties / b_job
      Added value: +{
      +  "description": "Occupation for offer B. Overrides the shared job.",
      +  "type": "string"
      +}
    • addedInput schema / properties / b_unit
      Added value: +{
      +  "description": "Pay period for offer B.",
      +  "enum": [
      +    "year",
      +    "hour"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / b_weeks
      Added value: +{
      +  "description": "Paid weeks per year for offer B. Default 52 for hourly pay.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 53,
      +  "type": "number"
      +}
    • changedInput schema / properties / unit / description
      Previous value: -"year or hour, for both offers (default year)."New value: +"Shared pay period for offers without their own unit."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Well beyond the annotations (which only declare read-only, idempotent, closed-world), the description discloses exactly what is computed (federal income tax, Social Security, Medicare, state income tax, then local price adjustment), which taxes are excluded (city/county), and the conditional behavior that a job title adds official pay-distribution placement. It also enumerates the returned figures, so the agent knows the shape of the answer despite no output schema.

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?

Purpose is front-loaded and the remaining sentences cover returns, the optional job mode, and a caveat, all of which earn their place. The opening sentence is very long with stacked clauses ('compared after federal income tax, Social Security, Medicare and state income tax, then after local prices...'), which slightly hurts scanability.

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

Completeness4/5

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

For a 14-parameter tool with no output schema, the description does the important work: it explains the computation pipeline and enumerates the return values, including the counterfactual matching salary. Minor gaps remain around how place strings are resolved and how unit/hours/weeks defaults combine, though the schema carries most of that detail.

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 baseline is 3; the description adds meaning by narrowing place inputs to 'a state or one of the 50 largest metro areas' and by explaining that the job inputs control whether and how each offer is placed on the official pay distribution. It says nothing extra about unit/hours/weeks interaction or the default-override chain, leaving that to the schema.

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?

States a specific verb (compare) and resource (two US job offers) and pins the scope: states or the 50 largest metros, after federal/SS/Medicare/state tax, then after BEA regional price parities including rent. That precision separates it from single-offer siblings like take_home or get_pay without needing to name them.

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

Usage Guidelines3/5

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

The two-offer framing implies when to use it, and 'With a job, also...' hints at an optional mode, but there is no explicit when-to-use / when-not-to-use statement or named alternative. The only negative guidance is a scope limit ('City and county income taxes are not included'), which is a caveat rather than routing advice.

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.

Resources