Skip to main content
Glama

Levels.fyi

search-locations

Read-only

Search locations (countries, metro areas / DMAs, and US states) using searchText input (required) and get their Levels.fyi slugs. Use this to resolve a location name (e.g. "San Francisco", "United States") into the slug the benchmark tools require in their locationSlugs filter. Each result includes its location type. Optionally restrict to one type. Without a type, a name that matches no country, metro or state is searched as a city: each city comes with its parent location (a metro, or the country where there is none), which is the slug to pass to the pay tools. Several places can share a name: pick the one the user means from context, and ask if unsure. If this returns no matches, fall back to search-all, which searches every entity type and applies a fuzzy fallback. REQUIRED arguments: searchText.

Input Schema

NameRequiredDescriptionDefault
typeNoRestrict results to one location type. Omit to search countries, metros (DMAs), and states together. Cities are only returned with type "city".
limitNoMax results to return (1–15).
searchTextYesLocation name to search for (country, metro area / DMA, or US state).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark it read-only and non-destructive, and the description adds non-obvious behavior on top: omitting type searches countries/metros/states but never cities, city results carry a parent location whose slug is what the pay tools consume, and ambiguous names may match multiple places. These are exactly the traits an agent could not infer from the schema.

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 purpose and slug-resolution rationale before the fallback and ambiguity rules. Mostly earned length, though the trailing 'REQUIRED arguments: searchText' line duplicates the schema's required array and could be dropped.

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?

There is no output schema, and the description compensates by describing what results contain (location type) and the city-plus-parent shape that determines which slug to forward. Combined with the fallback path and the ambiguity guidance, an agent has everything needed to call it and interpret the response.

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 type, limit, and searchText are already documented in the schema with an enum and range. The description restates 'REQUIRED arguments: searchText' without adding syntax or format guidance, and never mentions limit. Baseline 3 is appropriate.

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 (search), an explicit resource set (countries, metro areas / DMAs, US states, plus city fallback), and the returned artifact (Levels.fyi slugs). It distinguishes itself from get-location (single lookup) and search-all by naming the latter as the fallback.

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 says when to use it (resolve a name into the slug the benchmark tools need), how to narrow with the optional type, and what to do on zero results (fall back to search-all, which applies a fuzzy fallback). It also gives disambiguation policy: pick the place the user means from context, ask if unsure.

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.