Skip to main content
Glama

Levels.fyi

get-location-stats

Read-only

Top 10 locations in one country by median yearly total pay in USD over the last 2 years. For a single location, quote get-salary-percentiles. Never guess slugs. Use search-job-families, search-locations or search-companies. REQUIRED arguments: jobFamilySlug, countrySlug.

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>",
      "countrySlug": "<countrySlug>"
    },
    "name": "get-location-stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
countrySlugYesCountry only, e.g. united-states.
jobFamilySlugYesA Levels.fyi job family slug, e.g. "software-engineer", "product-manager", "data-scientist".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / countrySlug / description
      Previous value: -"A COUNTRY location slug, e.g. \"united-states\", \"india\", \"united-kingdom\". Resolve it with search-locations first; cities, metros and states are rejected."New value: +"Country only, e.g. united-states."
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds behavior beyond that: a hard cap of 10 results, USD currency, a median-of-yearly-total metric, and a 2-year lookback window — all of which shape how results should be interpreted. It stops short of describing ordering or tie-breaking, which keeps it from a 5.

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?

The primary capability is front-loaded in the first sentence, followed by disambiguation, slug sourcing, and required args in descending priority. Every sentence earns its place except the 'REQUIRED arguments' list, which duplicates the schema's required array verbatim.

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 two-parameter read-only ranking tool with no output schema, the description covers what is returned (top 10, metric, currency, window), when to use a sibling instead, and how to obtain valid slugs. The only gap is that the output shape beyond the ranking metric is not implied, though with no output schema that is a minor omission.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters are already documented with examples and descriptions. The description's 'REQUIRED arguments: jobFamilySlug, countrySlug' largely restates the schema, though 'Never guess slugs' adds a genuine usage constraint about where valid values come from. Baseline 3 is appropriate when the schema does the heavy lifting.

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-less but precise resource and scope: 'Top 10 locations in one country by median yearly total pay in USD over the last 2 years.' The ranking metric, geographic constraint, count, currency and time window are all named, so an agent knows exactly what data this returns and how it differs from get-salary-percentiles.

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?

Explicitly routes the agent: 'For a single location, quote get-salary-percentiles' names the alternative and the condition that selects it. It also warns 'Never guess slugs' and points to search-job-families, search-locations or search-companies for resolving the required arguments — the two failure modes an agent would otherwise hit.

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.