Skip to main content
Glama

levelsfyi_top_companies

Read-only

Returns the highest-paying companies for one Levels.fyi job family and country, ranked by the source's own median total compensation, with each company's name, slug, icon and median figure. Pass a job_family_slug from levelsfyi_job_families and a country_id (required) from levelsfyi_locations; an unknown job family is an empty ranking rather than an error.

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>",
      "country_id": "<country_id>"
    },
    "name": "levelsfyi_top_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault
country_idYesCountry id from levelsfyi-locations, for example 254 for United States
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 cover the safety profile (readOnly, openWorld), so the description's job is to add context, and it does: the ranking key is the source's own median rather than a computed value, and an unknown job family yields an empty ranking rather than an error — a genuinely useful failure-mode disclosure. It says nothing about result size or ordering ties, which keeps it out of the 5 band.

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?

Two tight sentences: the first defines what is returned and how it is ranked, the second tells the agent where the inputs come from and the failure mode. Nothing is repeated and the most important information leads.

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?

With only two required parameters, full schema coverage, an output schema, and annotations present, the description covers selection, input sourcing, and error behavior. An agent has everything needed to invoke this correctly on the first attempt.

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 description coverage is 100%, and both parameters are already documented there with the same provenance hints (levels.fyi locations / job-families, plus example values). The description mostly restates that, adding only the empty-ranking consequence of a bad slug, so baseline 3 is right.

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 highest-paying companies') and nails down scope: one job family, one country, ranked by the source's own median total compensation. It also enumerates the returned fields (name, slug, icon, median), so an agent knows exactly what it gets without opening the output 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?

Gives explicit prerequisites — take job_family_slug from levelsfyi_job_families and country_id from levelsfyi_locations — which is real routing guidance for constructing a valid call. It stops short of naming an alternative tool (e.g. levelsfyi_companies_by_level) or an explicit when-not-to-use case, so it sits just below the top band.

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.