Skip to main content
Glama

levelsfyi_locations

Read-only

Resolves one to twenty comma-separated Levels.fyi location slugs into their numeric id, type, display name, state, ISO country code, currency and default salary interval. Use it to get the country_id that levelsfyi_salaries and levelsfyi_top_companies accept, or the location_slug that levelsfyi_histogram requires. The source resolves the batch as a unit, so a slug it does not know fails the whole call rather than returning a partial set.

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": {
      "slugs": "<slugs>"
    },
    "name": "levelsfyi_locations"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugsYesComma-separated location slugs from levelsfyi-locations, up to 20; for example united-states or seattle-wa

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.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description adds real behavioral information beyond them by disclosing all-or-nothing batch semantics: 'a slug it does not know fails the whole call rather than returning a partial set.' It does not cover error response shape or whether unknown slugs are suggested, which keeps it short of 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.

Conciseness5/5

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

Three sentences, each carrying distinct information: what it resolves and returns, which consumers need the output, and the batch-failure rule. The most decision-relevant routing information is front and center with no filler.

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 single-parameter resolver with an output schema, the definition covers input format, consumers, and failure mode without needing to restate return values. Nothing an agent needs in order to call it correctly is missing.

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 the single slugs parameter is already documented with format and an example, so the schema baseline applies. The description adds modest meaning beyond it: the one-to-twenty batch limit and the failure behavior when any slug in the batch is unknown.

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?

The description opens with a specific verb and resource: 'Resolves one to twenty comma-separated Levels.fyi location slugs into their numeric id, type, display name, state, ISO country code, currency and default salary interval.' It names both the input form and the concrete fields returned, so an agent can tell this is a slug-to-id/record resolver rather than a search or listing tool.

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?

It states exactly where the output is consumed: the country_id for levelsfyi_salaries and levelsfyi_top_companies, and the location_slug for levelsfyi_histogram. That is explicit, actionable routing to the right downstream tools, not implied usage.

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.