geolens-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GEOLENS_TOKEN | No | JWT bearer token, used only when GEOLENS_API_KEY is unset | |
| GEOLENS_API_KEY | No | API key sent as X-Api-Key; omit for public-only access | |
| GEOLENS_INSTANCE | No | Base URL of your GeoLens instance, e.g. https://geolens.example.com (/api is appended automatically) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_datasetsA | Search the GeoLens catalog for datasets by free text. Matches title, description, and keywords (semantic ranking is used
automatically when the instance has it enabled). Returns a compact
FeatureCollection ( Search does not make a detail request per result. When the catalog summary
has no health/check/refresh value, Args: query: Search text. limit: Max results (1-200, default 10). offset: Result offset for paging. |
| get_dataset_schemaA | Get a dataset's schema and source trust metadata. Returns columns (name/type/role), geometry type, CRS/SRID, feature count,
spatial extent, and the safe Args: dataset_id: Dataset id (e.g. from search_datasets). |
| get_featuresA | Get GeoJSON features for a dataset (bounded). Returns an OGC-API FeatureCollection. Raster datasets have no features and
will error. Results are capped by Args: dataset_id: Dataset id. limit: Max features (1-200, default 10). offset: Feature offset for paging. bbox: Optional bounding box filter "minx,miny,maxx,maxy" (WGS84). |
| list_mapsA | List saved maps (read-only metadata: id, name, visibility, layer count). Args: search: Optional text filter on map name/description. limit: Max results (1-200, default 50). offset: Result offset for paging. |
| get_mapA | Get a summary of one saved map: name, description, visibility, view state (center, zoom, bearing, pitch), basemap, terrain configuration and layer list. Each layer has Args: map_id: Map id (e.g. from list_maps). |
| list_storiesA | List published stories you can read (read-only metadata: id, title, summary, visibility, chapter count). Drafts are never listed. Args:
search: Optional text filter on story title/summary.
limit: Max results (1-200, default 50).
offset: Result offset for paging. |
| get_storyA | Get one story's published version: title, summary, visibility and the
document with its chapters. Each chapter has a title, blocks and a scene
( Args: story_id: Story id (e.g. from list_stories). |
| aggregateA | Compute an exact aggregate over a dataset's rows: counts, summaries and
breakdowns without writing SQL. Use
Returns
Args: dataset_id: Dataset id with a feature table (not a raster). request: The aggregate body described above. |
| queryA | Run one read-only SQL SELECT against accessible datasets. Executes through the server's hardened SQL sandbox: a single SELECT over
PostGIS functions allowed: ST_Area, ST_AsGeoJSON, ST_AsText, ST_Buffer,
ST_Centroid, ST_Collect, ST_Contains, ST_Distance, ST_DWithin,
ST_GeometryType, ST_GeomFromGeoJSON, ST_GeomFromText, ST_Intersects,
ST_IsValid, ST_Length, ST_MakeEnvelope, ST_MakePoint, ST_NPoints, ST_Point,
ST_SetSRID, ST_Transform, ST_Union, ST_Within, ST_X, ST_Y. ST_Collect and
ST_Union take two geometries (no aggregate form). The Requires credentials with AI-chat permission — anonymous configurations
cannot use this tool. Workflow: Args:
sql: A single SELECT statement over |
| create_mapA | Create a private map and return its Args: name: Map name. description: Optional short description. basemap: Optional basemap id from the instance's basemap list, or "blank" for none. |
| add_layerA | Add a dataset to a map as a new layer, optionally styled. Each new
layer is drawn beneath the map's existing layers and can't be reordered,
so add the layer you want on top first. Returns the new
Args: map_id: A map this key created (from create_map). dataset_id: Dataset id (e.g. from search_datasets). style: Optional style, described above; omitted, the layer keeps the default style. popup_fields: Optional columns to show in the popup. |
| update_layer_styleA | Restyle a layer or change its popup fields. Give
Args: map_id: A map this key created. layer_id: Layer id (from add_layer or get_map). style: New style, described above. popup_fields: New popup columns; [] shows none. |
| set_cameraA | Set the view a map opens at. Only the arguments given change.
Needs a Args: map_id: A map this key created. center: [longitude, latitude] in WGS 84. zoom: Zoom level, 0-24. pitch: Tilt in degrees, 0-85. bearing: Rotation in degrees, -180 to 180. |
| set_basemapA | Change a map's basemap.
Needs a Args: map_id: A map this key created. basemap: Basemap id from the instance's basemap list, or "blank". |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 14 tools
Most tools target a distinct resource+action (create_map vs get_map vs list_maps, add_layer vs update_layer_style, query vs aggregate vs get_features). The only real overlaps are query/aggregate and aggregate's "rows" op vs get_features, but the descriptions explicitly state which to prefer ("prefer aggregate, which needs no SQL" / "use query for anything else"), so misselection risk is low.
The set overwhelmingly follows a verb_noun pattern (create_map, add_layer, update_layer_style, set_basemap, set_camera, list_maps, search_datasets, get_dataset_schema, get_features, get_map, get_story). Minor deviations are the bare-verb names `query` and `aggregate`, which lack the resource noun the rest of the set includes.
14 tools is well within a healthy scope and each earns its place across the three sub-domains (map authoring, dataset discovery/querying, story reading). No redundant or filler tools are present.
The read/query side is thorough, but the map lifecycle is create-only: there is no delete_map, no remove_layer, and no way to reorder layers (the add_layer description even warns layers can only be stacked one way). Stories are read-only (no create/update), and several tools reference an "instance's basemap list" yet no tool exposes that list, leaving a dead end for basemap selection.