oslew docs
Console
Menu

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.

ToolProductWhat it does
geocodeaddressResolve a place or address name to ranked results with calibrated confidence, hierarchy, evidence and provenance.
postcodeaddressA 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.
reverseaddressThe places nearest a point, nearest first, with distance in metres, hierarchy and provenance.
timezoneaddressThe IANA time zone at a point and its UTC, standard and daylight-saving offsets at a timestamp.
validateaddressValidate 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.
autocompletesearchComplete a partly typed place name: prominent places first. Suggestions carry no confidence; call geocode with the finished text.
nearbysearchThe nearest places to a point, nearest first, optionally of one category, with distance in metres, hierarchy and provenance.
departuresroutingThe 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.
isochroneroutingEvery ~600 m cell reachable by road within a time budget of a point, with the earliest arrival at each.
journeysroutingTransit 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.
matchroutingMatch 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.
matrixroutingTravel times in seconds between every pair of up to 500 points, null where unreachable.
optimizeroutingThe 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.
routeroutingThe fastest road route between two points: distance, duration at posted or class speeds (no traffic), and the path.
snaproutingThe nearest road node to a point and how far it is.
stopsroutingThe transit stops nearest a point with the routes calling at each, from a GTFS feed.
adminplatformThe administrative chain at a point — country, region, county, locality, neighbourhood — outermost first, with ISO codes and Overture ids.
aggregateplatformVessel traffic rolled up by cell and time bucket: exact position counts, mean speed, and a [min, max] bound on distinct vessels.
conditionsplatformThe 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.
crossingsplatformZone entries, exits and dwells along a vessel's track against the maritime zones — or every divisions layer with zones=all.
elevationplatformElevation in metres at a point or sampled along a path, bilinear on a 30 m grid (Copernicus GLO-30); null outside coverage.
eventsplatformEvents 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.
hereplatformEverything 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.
locateplatformA 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.
observationsplatformOne 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.
rasterplatformAny named raster layer — solar irradiance, land cover, elevation — at a point or sampled along a path, in the layer's units; null outside coverage.
scenesplatformSatellite scenes (STAC items) over a box or point in a time range under a cloud cover, newest first, with every asset's href.
trackplatformA vessel's AIS positions in a time range, by time.
vesselplatformA vessel's last known AIS position.
vesselsplatformEach vessel's latest AIS position in a cell around a point during a time range, latest first.
healthno keyThe 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.

  • qstringrequired
    Free text: a name, optionally followed by a comma and a locality, region or country. For addresses, a house number and street.
  • limitinteger≥ 1, ≤ 50
  • nearstring
    Optional lat,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.

  • codestringrequired
    The code in any spelling: 03940, SW1A 1AA, sw1a1aa.
  • countrystring
    ISO country code. Without it, a code two countries share comes back twice, which is the honest answer rather than a guess.
  • limitinteger≥ 1, ≤ 50
  • prefixboolean
    Treat code as 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.

  • atstringrequired
    lat,lon of 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.

  • atstringrequired
    lat,lon of the point.
  • timestampinteger
    Unix 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.

  • countrystring
  • house_numberstring
  • localitystring
  • postcodestring
  • regionstring
  • streetstring
  • textstring
    The 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.

  • qstringrequired
    Text 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, ≤ 50
  • nearstring
    Optional lat,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.

  • atstringrequired
    lat,lon of the point.
  • categorystring
    Optional category: matched whole or as a token of the place's category, e.g. pharmacy, restaurant.
  • limitinteger≥ 1, ≤ 50
  • open_atstring
    now or 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.

  • atstring
    lat,lon: the nearest stop within 1 km.
  • limitinteger
    At most 50.
  • stopstring
    A stop id as the feed names it (from stops); give this or at.
  • timeinteger
    Unix 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.

  • atstringrequired
    lat,lon of the origin.
  • levelinteger
    Cell level of the answer, 8–16; 14 is ~600 m.
  • profilestring
    The mode; each has its own network and speeds.
    driving | walking | cycling | rail
  • secondsnumber
    Travel time budget, at most 3600.
  • trafficstring
    live uses 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.

  • fromstringrequired
    lat,lon of the origin.
  • tostringrequired
    lat,lon of the destination.
  • limitinteger
  • max_transfersinteger
  • timeinteger
    Leave 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[]required
    The GPS trace in order, at most 10,000 points.
    • latnumberrequired
    • lonnumberrequired
    • timeinteger
      Unix seconds, optional.
  • geometryboolean
  • search_mnumber
    How far a road may be from a point.
  • sigma_mnumber
    The 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.

  • pointsstringrequired
    lat,lon;lat,lon;…, at most 500 points.
  • profilestring
    The mode; each has its own network and speeds.
    driving | walking | cycling | rail
  • trafficstring
    live uses 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.

  • pointsstringrequired
    lat,lon;lat,lon;…, 2 to 500 stops.
  • destinationstring
    last | any
  • geometryboolean
  • roundtripboolean
    Return to the first point.
  • sourcestring
    first | 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.

  • fromstringrequired
    lat,lon of the origin.
  • tostringrequired
    lat,lon of the destination.
  • geometryboolean
    Return the path as (lat, lon) per node.
  • profilestring
    The mode; each has its own network and speeds.
    driving | walking | cycling | rail
  • trafficstring
    live uses 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.

  • atstringrequired
    lat,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.

  • atstringrequired
    lat,lon.
  • limitinteger
    At most 50.
  • radius_mnumber
    Only 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.

  • atstringrequired
    lat,lon of 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.

  • atstringrequired
    lat,lon; the region is the cell at in_level around it.
  • bucketinteger
    Seconds, at least 3600.
  • frominteger
  • in_levelinteger
    Region cell level, 0–10; 4 is ~600 km.
  • levelinteger
    Output cell level, in_level–10; default max(in_level, 6).
  • limitinteger
  • tointeger

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.

  • atstringrequired
    lat,lon.
  • radius_mnumber
    Only 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.

  • mmsiintegerrequired
  • frominteger
  • tointeger
  • zonesstring
    all evaluates 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.

  • atstring
    lat,lon; give this or path.
  • pathstring
    lat,lon;lat,lon;…, sampled evenly by distance.
  • samplesinteger
    Samples 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.

  • atstring
    lat,lon: events within radius_m of it.
  • bboxstring
    lng_lo,lat_lo,lng_hi,lat_hi, instead of at.
  • categorystring
    Comma-separated: music, sports, arts, film, family, other, quake, air.
  • frominteger
    Unix seconds; default a day ago.
  • limitinteger≤ 100
  • orderstring
    soonest | newest | nearest
  • qstring
    Text the title must contain.
  • radius_mnumber≤ 500000
  • tointeger
    Unix 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.

  • atstringrequired
    lat,lon.
  • limitinteger
  • radius_mnumber
    Transit stops within this distance.
  • timeinteger
    Unix 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.
    • idstringrequired
      mcc-mnc-lac-cid.
    • signal_dbmnumber
  • wifiobject[]
    Wi-Fi access points in range.
    • idstringrequired
      BSSID, aa:bb:cc:dd:ee:ff in any separator or case.
    • signal_dbmnumber
      RSSI, 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.

  • atstringrequired
    lat,lon.
  • parameterstringrequired
    pm25, o3, temperature, … as the feed names it; an unknown one lists what is loaded.
  • frominteger
    Unix seconds; 24 hours before to when absent.
  • radius_mnumber
    Only stations within this distance.
  • stationsinteger
    Nearest stations to answer with, at most 10.
  • tointeger
    Unix 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.

  • layerstringrequired
    The raster layer: elevation, solar_ghi, ecmwf_2t, … as ingested; an unknown name lists the loaded ones.
  • atstring
    lat,lon; give this or path.
  • pathstring
    lat,lon;lat,lon;…, sampled evenly by distance.
  • samplesinteger
    Samples along the path, at most 512.
  • timeinteger
    Unix 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.

  • atstring
    lat,lon: scenes covering the point.
  • bboxstring
    lng_lo,lat_lo,lng_hi,lat_hi; or give at.
  • frominteger
    Unix seconds.
  • limitinteger≤ 500
  • max_cloudnumber
    Keep scenes with cloud cover at most this percent.
  • tointeger
    Unix seconds.

track

platformThe same answer as GET /v1/track.

A vessel's AIS positions in a time range, by time.

  • mmsiintegerrequired
  • frominteger
  • tointeger

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.

  • atstringrequired
    lat,lon of the point.
  • frominteger
    Unix seconds; the layer's start when absent.
  • levelinteger
    Cell level around the point, 2–16; 8 is ~40 km.
  • limitinteger
  • tointeger
    Unix 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.