levelsfyi_locations
Resolve Levels.fyi location slugs into numeric IDs, country codes, currencies, and coordinates so you can obtain country_id and location_slug required by salary and histogram tools.
Instructions
Resolve Levels.fyi location slugs to ids and currency. Resolves one to twenty Levels.fyi location slugs into their numeric id, type, display name, latitude and longitude when published, state and ISO country code, country name, local currency and default salary interval. Use it to discover the country_id that levelsfyi-salaries and levelsfyi-top-companies accept, and the location_slug that levelsfyi-histogram requires. Unknown slugs are rejected by the source wholesale rather than partially resolved, so a 404 means none of the supplied slugs exists.
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
| Name | Required | Description | Default |
|---|---|---|---|
| slugs | Yes | Comma-separated location slugs, up to 20, for example united-states |