Configure HTTP features per client

On deployments that expose HTTP feature controls, set supported overrides for a Model Context Protocol (MCP) client without changing server defaults. For example, a mapping client can request GeoJSON route geometry while another client keeps the deployment defaults.

Send feature overrides

Send one X-FEATURE-CONTROL header with a JSON object. Use exact uppercase flag names and JSON true or false values, not strings. Omitted keys keep server defaults.

X-FEATURE-CONTROL: {"ALLOW_GEOJSON_RETURN":true}
X-HERE-API-Key: <YOUR_HERE_API_KEY>
FlagEffect when true
ENABLE_APP_VISUALIZATIONEnables data-visualization to display results on an interactive map.
ENABLE_RENDER_MAP_IMAGEEnables render-map-image to render a static map image.
ENABLE_PUBLIC_TRANSIT_ROUTEEnables public-transit-route to plan trips by public transit.
ENABLE_GET_GEOMETRYEnables get-geometry to retrieve and cache area boundaries and lets discover search within that cached geometry.
ENABLE_GET_ROUTE_FROM_POLYLINEEnables get-route-from-polyline to import and cache a route from an encoded polyline.
ENABLE_GET_CACHED_ARTIFACTEnables get-cached-artifact to retrieve the JSON cached under an artifact ID.
ENABLE_ADVANCED_EV_OPTIONSExposes advanced EV consumption and charging options in the calculate-route input schema.
ENABLE_ROUTE_RICH_DESCRIPTIONAdds a description naming places along the route when available.
ENABLE_ROUTE_CHARACTERISTICSLets callers request route characteristics such as curvature, road surface, elevation, tunnels, and bridges.
ROUTE_CHARACTERISTICS_DETAILSAdds coverage and a breakdown by characteristic to the summary when route characteristics are requested.
ALLOW_GEOJSON_RETURNLets callers request route geometry as GeoJSON using the polyline return option.
RETURN_PLACES_IDIncludes HERE place IDs in geocode, discover, and find-route-stops results when available.
RETURN_PLACES_DETAILED_CATEGORIESIncludes detailed place categories in geocode, discover, and find-route-stops results when available.

MATRIX_ROUTING_TIER, numeric route-characteristics settings, and other unlisted keys can only be configured on the server deployment.

Apply settings to HTTP requests

  • Stateful connections: Send the feature and HERE credential headers on initialize. Later requests reuse the settings through Mcp-Session-Id; normal authentication requirements still apply. Start a new session to change the settings.
  • Stateless MCP (protocol version 2026-07-28): Send the feature and HERE credential headers on every request that needs the settings, including tools/list and tools/call.

The header name is case-insensitive, and flag names are case-sensitive. Send one header containing at most 4 KB of printable ASCII. JSON that isn't valid, duplicate keys or headers, unsupported keys, and legacy per-flag X-FEATURE-* headers return HTTP 400 after credential checks.

When migrating from per-flag headers, replace them with X-FEATURE-CONTROL in your client and gateway forwarding configuration. Initialize a fresh session after the change.

Next steps


Did this page help you?