Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

roadstyle draws road networks as styled, interactive, offline HTML maps (MapLibre, one file).

  • render_place: any place name -> OpenStreetMap roads (osmnx) -> map. render_file: a road file.

  • Each returns the saved .html path and a PNG preview. Look at the preview before reporting back.

  • A street name shows where it fits inside its road: main roads from zoom 15-16, side streets from 17. One-way arrows: main roads from zoom 15, side streets from 17. The preview is zoomed out, so use snapshot(html_path, lon, lat, zoom=17) to check them.

  • options = render_edges keywords, e.g. {"color_by": "maxspeed", "legend": true}, {"include": ["primary", "secondary"]}, {"basemap": "osm"}, {"palette": "carto"} (amber is the default; also highsat, mono), {"view_3d": true}.

  • Edges are directed: a two-way street is two edges drawn side by side. Don't merge them. Docs: https://khoshkhah.github.io/roadstyle/ (every keyword: /reference/parameters/).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
render_placeA

Download the OpenStreetMap road network of a place and draw it as an interactive HTML map.

place: any name OpenStreetMap's geocoder knows, e.g. "Södermalm, Stockholm" or "Tartu, Estonia".
Keep it to a district or a city: a county takes minutes to download.
network_type: "drive", "walk", "bike", "all", "drive_service" or "all_public".
options: render_edges keywords, e.g. {"color_by": "maxspeed", "legend": true}.
output_path: where to save the .html (default ~/roadstyle-maps/<place>.html).
Returns the saved path, a summary and a PNG preview.
render_fileA

Draw the road edges in a file (GeoPackage, GeoJSON, Shapefile, ...) as an interactive HTML map.

The file needs line geometry (any CRS) and a road-class column, "highway" by default
(another name: options={"highway_col": "..."}).
options: render_edges keywords, e.g. {"color_by": "speed", "cmap": "viridis", "legend": true}.
output_path: where to save the .html (default ~/roadstyle-maps/<file name>.html).
Returns the saved path, a summary and a PNG preview.
snapshotB

PNG of a saved roadstyle map, optionally with a camera (centre lon/lat, zoom 0-22).

Street names: main roads from zoom 15-16, side streets from 17; one-way arrows: main roads from 15, side streets from 17.
Without a camera the map's own opening view is captured.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 3 tools

Disambiguation4/5

The two render tools are cleanly separated by input source: render_place downloads from OpenStreetMap, render_file reads a local geospatial file. snapshot is mostly distinct (raster PNG of an existing map vs interactive HTML), though its overlap with the render tools' 'PNG preview' output could cause an agent to reach for it when it actually wants a render. Minor confusion, not serious.

Naming Consistency4/5

render_place and render_file follow a clear verb_noun pattern and read as siblings. snapshot breaks the pattern with a bare noun and implicit verb, but it is still short and interpretable within a three-tool set.

Tool Count4/5

Three tools is lean but proportionate to a focused rendering server; each maps to a distinct input source (place name, file, saved map). It sits just under the comfortable range but nothing is gratuitous.

Completeness3/5

The core render paths are covered, but lifecycle gaps remain: no tool to list or open the 'saved roadstyle maps' that snapshot implies, no bbox/coordinate-based area rendering (only geocoder place names), and no vector or non-HTML export. Agents will hit dead ends when a place is unknown to the geocoder or when they need to revisit prior output.

Maintenance

ActivityActive
ResponsivenessNo recent community issues