Skip to main content
Glama

Levels.fyi

get-salary-percentiles

Read-only

Median yearly total pay in USD across levels over the last 12 months. Compare up to 5 locations. Example: {"jobFamilySlug":"software-engineer","locationSlugs":["united-states"]}. For pay by level at a company, use get-salaries-by-company-level. Never guess slugs. Use search-job-families, search-locations or search-companies. REQUIRED arguments: jobFamilySlug, locationSlugs. Array-typed arguments (locationSlugs) must be passed as arrays, even for a single value.

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": {
      "jobFamilySlug": "<jobFamilySlug>",
      "locationSlugs": "<locationSlugs>"
    },
    "name": "get-salary-percentiles"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobFamilySlugYesA Levels.fyi job family slug, e.g. "software-engineer", "product-manager", "data-scientist".
locationSlugsYesCity, metro, country or region. For states, use a metro or country.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / locationSlugs / description
      Previous value: -"Up to 5 location slugs (city, metro, country or region; not a state), compared in one call. Resolve each with search-locations first; for a state, use its metro or country."New value: +"City, metro, country or region. For states, use a metro or country."
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • changedInput schema / properties / locationSlugs / description
      Previous value: -"Up to 5 location slugs (metro, country or region; not a state or city), compared in one call. Resolve each with search-locations first; for a city, use its parent metro, and for a state, its metro or country."New value: +"Up to 5 location slugs (city, metro, country or region; not a state), compared in one call. Resolve each with search-locations first; for a state, use its metro or country."
  4. Changed3 schema fields changed
    • removedInput schema / properties / locationSlug
      Removed value: -{
      -  "description": "One location slug (metro, state, country or region; not a city), e.g. \"san-francisco-bay-area\". Resolve it with search-locations first; for a city, use its parent metro.",
      -  "example": "san-francisco-bay-area",
      -  "type": "string"
      -}
    • addedInput schema / properties / locationSlugs
      Added value: +{
      +  "description": "Up to 5 location slugs (metro, country or region; not a state or city), compared in one call. Resolve each with search-locations first; for a city, use its parent metro, and for a state, its metro or country.",
      +  "example": [
      +    "san-francisco-bay-area",
      +    "greater-seattle-area"
      +  ],
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 5,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "jobFamilySlug",
      -  "locationSlug"
      -]New value: +[
      +  "jobFamilySlug",
      +  "locationSlugs"
      +]
  5. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful behavioral context beyond that: the 12-month lookback window, USD currency, and a hard 5-location comparison cap. It stops short of describing aggregation behavior or what happens when a slug matches multiple regions, so it adds value without being rich.

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?

Front-loaded with the metric and scope, then the example, then the sibling routing, then the mechanical reminders. The trailing 'REQUIRED arguments' sentence partially restates the schema's required list, which is mild redundancy, but the array-format warning earns its place.

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?

With no output schema, the description carries the burden of explaining the return value, and it does so at a high level (median total pay in USD across levels, 12-month window). It does not say whether results are broken out per location or per level, which leaves some ambiguity about the response shape.

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, and the description genuinely adds beyond the schema: the 'Never guess slugs' validation workflow and the explicit rule that locationSlugs must be passed as an array even for one value. That array-format clarification is a real invocation-time failure mode the schema does not spell out.

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 metric (median yearly total pay in USD), a time window (last 12 months), and scope (up to 5 locations), then explicitly distinguishes itself from get-salaries-by-company-level. An agent can tell exactly what this returns and what it does not.

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

Usage Guidelines5/5

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

Names the alternative sibling and the condition that selects it ('pay by level at a company'), and routes slug discovery to search-job-families, search-locations, or search-companies with an explicit 'Never guess slugs' rule. Required arguments are also restated, leaving nothing to inference.

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.