MCP tools
The 31 tools the oslew MCP server (version 0.0.1) registers, printed from the server itself at commit b8f4bde-dirty. To connect an agent, seeAI agents over MCP.
A key is shown only the tools its plan includes. tools/list filters by the same product table the HTTP routes are gated by, and tools/call refuses the rest with the plan that includes it named. Every tool is read-only: nothing an agent can call changes what the service answers.
| Tool | Product | What it does |
|---|---|---|
| geocode | address | Resolve a place or address name to ranked results with calibrated confidence, hierarchy, evidence and provenance. |
| postcode | address | A postcode's centroid, bounding box, administrative chain, and how many addresses the centroid was computed from. That count is worth reading: a centroid from four addresses is a different object from one built from four thousand. Set prefix to complete a partial code. The centroid is derived from the addresses carrying the code, not an official boundary centroid. |
| reverse | address | The places nearest a point, nearest first, with distance in metres, hierarchy and provenance. |
| timezone | address | The IANA time zone at a point and its UTC, standard and daylight-saving offsets at a timestamp. |
| validate | address | Validate a postal address: a verdict (confirmed, corrected, partial, unconfirmed), the corrected formatted form, the position, and each component's agreement (exact, fuzzy, partial, missing). Give free text or components. |
| autocomplete | search | Complete a partly typed place name: prominent places first. Suggestions carry no confidence; call geocode with the finished text. |
| nearby | search | The nearest places to a point, nearest first, optionally of one category, with distance in metres, hierarchy and provenance. |
| departures | routing | The next scheduled departures from a stop or from the nearest stop to a point, on the feed's calendar in its own time zone: route, headsign, unix time. |
| isochrone | routing | Every ~600 m cell reachable by road within a time budget of a point, with the earliest arrival at each. |
| journeys | routing | Transit directions: the fastest journeys by bus, metro and rail between two points, one per number of transfers, each as walk and ride legs with routes, headsigns and times, on the feed's own clock with live delays when present. |
| match | routing | Match a GPS trace onto the roads: which edge each point was on, the route actually driven, its length and duration, and a confidence. Points with no road within reach come back null. |
| matrix | routing | Travel times in seconds between every pair of up to 500 points, null where unreachable. |
| optimize | routing | The fastest order to visit 2 to 500 stops, as a round trip or one way, with the legs' durations and the routed geometry. Exact up to 8 stops, heuristic beyond. |
| route | routing | The fastest road route between two points: distance, duration at posted or class speeds (no traffic), and the path. |
| snap | routing | The nearest road node to a point and how far it is. |
| stops | routing | The transit stops nearest a point with the routes calling at each, from a GTFS feed. |
| admin | platform | The administrative chain at a point — country, region, county, locality, neighbourhood — outermost first, with ISO codes and Overture ids. |
| aggregate | platform | Vessel traffic rolled up by cell and time bucket: exact position counts, mean speed, and a [min, max] bound on distinct vessels. |
| conditions | platform | The latest reading of every parameter near a point — air quality, weather — each from the nearest station carrying it, with the station, its distance and the reading's time. |
| crossings | platform | Zone entries, exits and dwells along a vessel's track against the maritime zones — or every divisions layer with zones=all. |
| elevation | platform | Elevation in metres at a point or sampled along a path, bilinear on a 30 m grid (Copernicus GLO-30); null outside coverage. |
| events | platform | Events near a point or in a box overlapping a time range: ticketed concerts, games and shows, earthquakes, and hours when air readings reached a city's alert level (readings, not declarations). Each with its feed's licence in sources. |
| here | platform | Everything known at a point in one call: administrative chain, time zone, nearest places, nearest road and its class, elevation and every raster (forecasts at time), latest station readings, transit stops. Start here when asked about a location. |
| locate | platform | A position from the Wi-Fi access points and cell towers a device can see, from a beacon feed: a weighted centroid with an accuracy radius, the beacons used, and the ids no feed knew. Errors when none is known. |
| observations | platform | One parameter's time series (air quality, weather) at the stations nearest a point, from a station feed: points with the feed's decimals and provenance. |
| raster | platform | Any named raster layer — solar irradiance, land cover, elevation — at a point or sampled along a path, in the layer's units; null outside coverage. |
| scenes | platform | Satellite scenes (STAC items) over a box or point in a time range under a cloud cover, newest first, with every asset's href. |
| track | platform | A vessel's AIS positions in a time range, by time. |
| vessel | platform | A vessel's last known AIS position. |
| vessels | platform | Each vessel's latest AIS position in a cell around a point during a time range, latest first. |
| health | no key | The index the server is answering from: epoch, segments, entities, bytes, release. |
What the server tells an agent
Sent in the MCP initialize result, before any tool is called:
A geospatial index: places, addresses, administrative areas, time zones, roads, elevation and other rasters, vessel tracks, satellite scenes, and — when feeds are loaded — place attributes, beacons, station readings and transit timetables. Every tool is read-only and answers from the loaded index; nothing here changes it. Coordinates are lat,lon strings in degrees; times are unix seconds. Every answer carries provenance (source, release, license) and took_us. The licence code is per result; terms are at https://www.oslew.com/licensing.
Finding places: geocode (free text; a locality after a comma or a near point disambiguates) returns ranked results with a calibrated confidence (the observed precision of results like this one), a hierarchy, why (which query tokens matched, how many the name had spare, and the mode: all, fuzzy for an edit-distance salvage, partial) and tied_at_top; when tied_at_top is greater than 1 the query does not determine one place — ask the user or add context. decision.action is act, ask, or refuse: refuse means do not pick one (the top results tie, or the best is too close to the next), so show the user decision.disambiguation and ask which; ask means ask for what ask_for names. Never guess. A context after a comma is resolved through the divisions layer — as spelled, as the ISO code of a region or country of that name, and by containment in any division of that name or whole-word prefix, in any language — and context_resolution says how; when fallback is true nothing satisfied it and the results are the answer without it, so say so or ask. autocomplete completes a prefix and claims no confidence. reverse gives the nearest places and the administrative chain at a point; nearby the nearest of a category, optionally only those open at a time; admin the chain alone; timezone the zone and offsets at a point.
Roads: route, matrix and isochrone use posted or class speeds unless the call passes traffic: "live" and a traffic feed is applied; with no feed applied live answers at those same speeds, and each answer's engine says which weights were used. snap gives the nearest point on a road. elevation samples the DEM; raster samples any loaded layer by name and lists the names when asked for one that is not loaded.
Sea: vessels (latest position per vessel in a cell and window), track, vessel (latest fix), crossings (zone entries, exits and dwells; at_start marks a track that began inside), aggregate (traffic by cell and time bucket; vessel counts are a [min, max] bound). scenes lists satellite scenes over a point or box by time and cloud cover with their asset hrefs. events lists what is happening near a point in a time range: ticketed events, earthquakes, and air episodes (readings at a city's alert level; the authority declares, the reading does not).
Feeds, when loaded: locate turns the Wi-Fi and cell ids a device sees into a fix with an accuracy_m radius and the ids it did not know — treat a fix with few used beacons as coarse. conditions gives the latest reading of every parameter near a point from the nearest station; observations one parameter's series. stops and departures answer from a transit timetable in the feed's own time zone. health reports what is loaded. A tool for a layer that is not loaded says so in its error rather than answering emptily, with two exceptions: here leaves out any layer that is not loaded, and admin answers an empty chain (with layers: 0) when no divisions layer is.
Tools
geocode
addressThe same answer as GET /v1/geocode.
Resolve a place or address name to ranked results with calibrated confidence, hierarchy, evidence and provenance.
qstringrequiredFree text: a name, optionally followed by a comma and a locality, region or country. For addresses, a house number and street.limitinteger≥ 1, ≤ 50nearstringOptionallat,lon; constrains results to roughly a city around it.
postcode
addressThe same answer as GET /v1/postcode.
A postcode's centroid, bounding box, administrative chain, and how many addresses the centroid was computed from. That count is worth reading: a centroid from four addresses is a different object from one built from four thousand. Set prefix to complete a partial code. The centroid is derived from the addresses carrying the code, not an official boundary centroid.
codestringrequiredThe code in any spelling:03940,SW1A 1AA,sw1a1aa.countrystringISO country code. Without it, a code two countries share comes back twice, which is the honest answer rather than a guess.limitinteger≥ 1, ≤ 50prefixbooleanTreatcodeas a prefix and return the codes beginning with it. For a type-ahead over postcodes, which is cheaper than autocomplete over addresses.
reverse
addressThe same answer as GET /v1/reverse.
The places nearest a point, nearest first, with distance in metres, hierarchy and provenance.
atstringrequiredlat,lonof the point.limitinteger≥ 1, ≤ 50
timezone
addressThe same answer as GET /v1/timezone.
The IANA time zone at a point and its UTC, standard and daylight-saving offsets at a timestamp.
atstringrequiredlat,lonof the point.timestampintegerUnix seconds the offsets are wanted for; now when absent.
validate
addressThe same answer as GET /v1/validate.
Validate a postal address: a verdict (confirmed, corrected, partial, unconfirmed), the corrected formatted form, the position, and each component's agreement (exact, fuzzy, partial, missing). Give free text or components.
countrystringhouse_numberstringlocalitystringpostcodestringregionstringstreetstringtextstringThe address as written:number street, locality, region postcode, country.
autocomplete
searchThe same answer as GET /v1/autocomplete.
Complete a partly typed place name: prominent places first. Suggestions carry no confidence; call geocode with the finished text.
qstringrequiredText being typed, optionally followed by a comma and a locality. The last token is treated as a prefix unless the text ends in a space.limitinteger≥ 1, ≤ 50nearstringOptionallat,lon; constrains results to roughly a city around it.
nearby
searchThe same answer as GET /v1/nearby.
The nearest places to a point, nearest first, optionally of one category, with distance in metres, hierarchy and provenance.
atstringrequiredlat,lonof the point.categorystringOptional category: matched whole or as a token of the place's category, e.g.pharmacy,restaurant.limitinteger≥ 1, ≤ 50open_atstringnowor unix seconds: only places an attributes feed says are open then, in the point's time zone.
departures
routingThe same answer as GET /v1/departures.
The next scheduled departures from a stop or from the nearest stop to a point, on the feed's calendar in its own time zone: route, headsign, unix time.
atstringlat,lon: the nearest stop within 1 km.limitintegerAt most 50.stopstringA stop id as the feed names it (fromstops); give this or at.timeintegerUnix seconds; now when absent.
isochrone
routingThe same answer as GET /v1/isochrone.
Every ~600 m cell reachable by road within a time budget of a point, with the earliest arrival at each.
atstringrequiredlat,lonof the origin.levelintegerCell level of the answer, 8–16; 14 is ~600 m.profilestringThe mode; each has its own network and speeds.driving | walking | cycling | railsecondsnumberTravel time budget, at most 3600.trafficstringliveuses the traffic feed's weights when one is applied (driving only).live
journeys
routingThe same answer as GET /v1/journeys.
Transit directions: the fastest journeys by bus, metro and rail between two points, one per number of transfers, each as walk and ride legs with routes, headsigns and times, on the feed's own clock with live delays when present.
fromstringrequiredlat,lonof the origin.tostringrequiredlat,lonof the destination.limitintegermax_transfersintegertimeintegerLeave at or after, unix seconds; now when absent.walk_mnumber
match
routingThe same answer as POST /v1/match.
Match a GPS trace onto the roads: which edge each point was on, the route actually driven, its length and duration, and a confidence. Points with no road within reach come back null.
pointsobject[]requiredThe GPS trace in order, at most 10,000 points.latnumberrequiredlonnumberrequiredtimeintegerUnix seconds, optional.
geometrybooleansearch_mnumberHow far a road may be from a point.sigma_mnumberThe GPS noise.
matrix
routingThe same answer as GET /v1/matrix.
Travel times in seconds between every pair of up to 500 points, null where unreachable.
pointsstringrequiredlat,lon;lat,lon;…, at most 500 points.profilestringThe mode; each has its own network and speeds.driving | walking | cycling | railtrafficstringliveuses the traffic feed's weights when one is applied (driving only).live
optimize
routingThe same answer as GET /v1/optimize.
The fastest order to visit 2 to 500 stops, as a round trip or one way, with the legs' durations and the routed geometry. Exact up to 8 stops, heuristic beyond.
pointsstringrequiredlat,lon;lat,lon;…, 2 to 500 stops.destinationstringlast | anygeometrybooleanroundtripbooleanReturn to the first point.sourcestringfirst | any
route
routingThe same answer as GET /v1/route.
The fastest road route between two points: distance, duration at posted or class speeds (no traffic), and the path.
fromstringrequiredlat,lonof the origin.tostringrequiredlat,lonof the destination.geometrybooleanReturn the path as (lat, lon) per node.profilestringThe mode; each has its own network and speeds.driving | walking | cycling | railtrafficstringliveuses the traffic feed's weights when one is applied (driving only).live
snap
routingThe same answer as GET /v1/snap.
The nearest road node to a point and how far it is.
atstringrequiredlat,lon.
stops
routingThe same answer as GET /v1/stops.
The transit stops nearest a point with the routes calling at each, from a GTFS feed.
atstringrequiredlat,lon.limitintegerAt most 50.radius_mnumberOnly stops within this distance, at most 5000.
admin
platformThe same answer as GET /v1/admin.
The administrative chain at a point — country, region, county, locality, neighbourhood — outermost first, with ISO codes and Overture ids.
atstringrequiredlat,lonof the point.
aggregate
platformThe same answer as GET /v1/aggregate.
Vessel traffic rolled up by cell and time bucket: exact position counts, mean speed, and a [min, max] bound on distinct vessels.
atstringrequiredlat,lon; the region is the cell at in_level around it.bucketintegerSeconds, at least 3600.fromintegerin_levelintegerRegion cell level, 0–10; 4 is ~600 km.levelintegerOutput cell level, in_level–10; default max(in_level, 6).limitintegertointeger
conditions
platformThe same answer as GET /v1/conditions.
The latest reading of every parameter near a point — air quality, weather — each from the nearest station carrying it, with the station, its distance and the reading's time.
atstringrequiredlat,lon.radius_mnumberOnly stations within this distance.
crossings
platformThe same answer as GET /v1/crossings.
Zone entries, exits and dwells along a vessel's track against the maritime zones — or every divisions layer with zones=all.
mmsiintegerrequiredfromintegertointegerzonesstringallevaluates every divisions layer.maritime | all
elevation
platformThe same answer as GET /v1/elevation.
Elevation in metres at a point or sampled along a path, bilinear on a 30 m grid (Copernicus GLO-30); null outside coverage.
atstringlat,lon; give this or path.pathstringlat,lon;lat,lon;…, sampled evenly by distance.samplesintegerSamples along the path, at most 512.
events
platformThe same answer as GET /v1/events.
Events near a point or in a box overlapping a time range: ticketed concerts, games and shows, earthquakes, and hours when air readings reached a city's alert level (readings, not declarations). Each with its feed's licence in sources.
atstringlat,lon: events withinradius_mof it.bboxstringlng_lo,lat_lo,lng_hi,lat_hi, instead ofat.categorystringComma-separated: music, sports, arts, film, family, other, quake, air.fromintegerUnix seconds; default a day ago.limitinteger≤ 100orderstringsoonest | newest | nearestqstringText the title must contain.radius_mnumber≤ 500000tointegerUnix seconds; default thirty days ahead.
here
platformThe same answer as GET /v1/here.
Everything known at a point in one call: administrative chain, time zone, nearest places, nearest road and its class, elevation and every raster (forecasts at time), latest station readings, transit stops. Start here when asked about a location.
atstringrequiredlat,lon.limitintegerradius_mnumberTransit stops within this distance.timeintegerUnix seconds for forecasts; now when absent.
locate
platformThe same answer as POST /v1/locate.
A position from the Wi-Fi access points and cell towers a device can see, from a beacon feed: a weighted centroid with an accuracy radius, the beacons used, and the ids no feed knew. Errors when none is known.
cellobject[]Cell towers in range.idstringrequiredmcc-mnc-lac-cid.signal_dbmnumber
wifiobject[]Wi-Fi access points in range.idstringrequiredBSSID,aa:bb:cc:dd:ee:ffin any separator or case.signal_dbmnumberRSSI, e.g. -55; weights the fix when given.
observations
platformThe same answer as GET /v1/observations.
One parameter's time series (air quality, weather) at the stations nearest a point, from a station feed: points with the feed's decimals and provenance.
atstringrequiredlat,lon.parameterstringrequiredpm25,o3,temperature, … as the feed names it; an unknown one lists what is loaded.fromintegerUnix seconds; 24 hours beforetowhen absent.radius_mnumberOnly stations within this distance.stationsintegerNearest stations to answer with, at most 10.tointegerUnix seconds; the feed's end when absent.
raster
platformThe same answer as GET /v1/raster.
Any named raster layer — solar irradiance, land cover, elevation — at a point or sampled along a path, in the layer's units; null outside coverage.
layerstringrequiredThe raster layer:elevation,solar_ghi,ecmwf_2t, … as ingested; an unknown name lists the loaded ones.atstringlat,lon; give this or path.pathstringlat,lon;lat,lon;…, sampled evenly by distance.samplesintegerSamples along the path, at most 512.timeintegerUnix seconds, for a field with a time axis such as a forecast; now when absent.
scenes
platformThe same answer as GET /v1/scenes.
Satellite scenes (STAC items) over a box or point in a time range under a cloud cover, newest first, with every asset's href.
atstringlat,lon: scenes covering the point.bboxstringlng_lo,lat_lo,lng_hi,lat_hi; or giveat.fromintegerUnix seconds.limitinteger≤ 500max_cloudnumberKeep scenes with cloud cover at most this percent.tointegerUnix seconds.
track
platformThe same answer as GET /v1/track.
A vessel's AIS positions in a time range, by time.
mmsiintegerrequiredfromintegertointeger
vessel
platformThe same answer as GET /v1/vessel.
A vessel's last known AIS position.
mmsiintegerrequired
vessels
platformThe same answer as GET /v1/vessels.
Each vessel's latest AIS position in a cell around a point during a time range, latest first.
atstringrequiredlat,lonof the point.fromintegerUnix seconds; the layer's start when absent.levelintegerCell level around the point, 2–16; 8 is ~40 km.limitintegertointegerUnix seconds; the layer's end when absent.
health
no keyThe same answer as GET /v1/health.
The index the server is answering from: epoch, segments, entities, bytes, release.
No arguments.
Not tools, deliberately
Feed ingestion — live traffic and GTFS-Realtime — is not exposed. It is an operator's action that changes what one pod answers, not a question an agent should be able to ask. Neither are batch jobs, tiles or static maps, which return files rather than answers an agent reasons over.