Skip to main content
Glama

levelsfyi_histogram

Read-only

Returns the published pay distribution for one Levels.fyi job family in one location: sample count, the source's 20 value buckets, and the percentiles it publishes for total compensation, base salary, stock grant and bonus separately. location_slug is required; a location with no distribution is a not-found. Percentiles the source does not publish stay absent rather than becoming zero.

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": {
      "job_family_slug": "<job_family_slug>",
      "location_slug": "<location_slug>"
    },
    "name": "levelsfyi_histogram"
  }
}

Input Schema

NameRequiredDescriptionDefault
location_slugYesLocation slug from levelsfyi-locations, for example united-states; the upstream requires one
job_family_slugYesJob family slug from levelsfyi-job-families, for example software-engineer

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds real value beyond them: it discloses the upstream's 20-bucket structure, that percentiles are split by compensation component, that missing percentiles stay absent rather than zero, and that empty locations surface as not-found. The only gap is the lack of any note on pagination or rate limits — though neither likely applies to a fixed-size histogram.

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

Conciseness5/5

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

Three sentences, front-loaded with the purpose and return contents, then the required-parameter constraint, then the edge-case rule. No filler or repetition of the name.

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?

For a two-parameter read tool with an output schema, the description covers the remaining burden well: what the distribution contains, how components are separated, the error case, and the absent-versus-zero convention. An agent can call it correctly and interpret results without further documentation.

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% and both parameters are already documented with slug-source hints, so the baseline is 3. The description restates that location_slug is required and adds the not-found condition, but adds no format or syntax detail beyond 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 and resource: returns the published pay distribution for one job family in one location, and enumerates exactly what comes back (sample count, 20 value buckets, per-component percentiles). This is clearly distinct from siblings like levelsfyi_salaries or levelsfyi_job_families, which do not return histograms.

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?

Gives clear preconditions: location_slug is required and a location without a distribution returns not-found, so the agent knows the call can fail on bad input. It does not explicitly say when to prefer this over levelsfyi_salaries for individual records, leaving that routing 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.