E2 MCP tool reference

Every registered E2 MCP tool returns JSON text content and validates its inputs with a Zod schema.

Documentation navigation

Search and cache

ToolInputsBehavior
e2_searchfeature, area or regionId, mode, limit, bbox, where, propertiesReturns a GeoJSON FeatureCollection.
e2_cacheaction=list|set|delete|clear; size or key as neededManages the default local data cache.
e2_search.json
{
  "feature": ["restaurant", "hospital"],
  "area": ["Manhattan", "Brooklyn"],
  "mode": "auto",
  "limit": 100
}

Cells

ToolInputsBehavior
e2_encodelat, lng, time, spatialResolution, temporalResolution, optional featureEncodes a spacetime cell ID.
e2_decodeidDecodes a cell into version, spatial, temporal, and feature data.
e2_neighborsid, optional k from 1 to 10Returns spatial neighbors.

Routing

ToolInputsBehavior
e2_routeoperation and bodyOperation is route, matrix, isochrone, mapMatch, locate, or height.
e2_route_to_featurefeature, from, optional area and modeFinds the nearest feature and routes to it.
e2_route.json
{
  "operation": "route",
  "body": {
    "locations": [
      { "lat": 40.74, "lon": -73.99 },
      { "lat": 40.71, "lon": -74.01 }
    ],
    "mode": "walking"
  }
}
The MCP tool currently exposes six route operations. The SDK and CLI also expose additional request support.

Compute and storage

ToolRequired inputsOptional inputs
e2_computeprimitive, featuredatabase, mode, region or area, near, within, distanceMeters, limit
e2_comparefeatures or feature plus areasdatabase, primitive, mode, region
e2_storage_uploadpath, databasefeature, connectTo, featureId, output, region
e2_compute.json
{
  "primitive": "COUNT",
  "feature": ["restaurant"],
  "area": "Manhattan",
  "near": "park",
  "distanceMeters": 500,
  "mode": "auto"
}

Catalog discovery

ToolInputBehavior
e2_features_searchquerySearches the feature registry.
e2_regions_searchquerySearches the region catalog.
e2_datasets_listnoneLists datasets available to E2.

Validation defaults

The server validates latitude and longitude ranges, spatial resolution 0 through 15, known temporal resolutions, positive limits, relation distances, and operation enums before calling the SDK. Search and compute limits default to 1,000 and cap at 100,000.