roadstyle
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| render_placeA | Download the OpenStreetMap road network of a place and draw it as an interactive HTML map. |
| render_fileA | Draw the road edges in a file (GeoPackage, GeoJSON, Shapefile, ...) as an interactive HTML map. |
| snapshotB | PNG of a saved roadstyle map, optionally with a camera (centre lon/lat, zoom 0-22). |
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 3 tools
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.
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.
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.
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.