TomTom Get Traffic
tomtom-get-trafficReports current traffic incidents — accidents, closures, jams and roadworks — for a city, area or route corridor, returning them worst-first with delay totals and counts by category.
Instructions
Report current traffic incidents — accidents, closures, jams, roadworks — for an area. Use this first for any question about traffic, delays or road conditions. Name the city, district or neighbourhood in where.queries (e.g. ["Amsterdam"]) and incidents come from its outline, or its bounding box when it has none; a boundingBox or polygons work too. For a radius around a landmark use mode nearby and NAME it in where.query ("Schiphol Airport") — no locate call first. An incident found in two areas counts once. For the delay on a drive use tomtom-plan-route instead — its result already carries the live delay and every hold-up the route meets. For incidents NEAR a drive (both directions, the roads alongside, planned roadworks) use mode alongRoute with the trip's locations: it covers a corridor withinMeters either side, however long the drive, or of the part of it stretch picks. An area is capped at 10,000 km². Every result has an incidentSummary over ALL the incidents found: the total, the total delay, and counts by category, magnitude and road number (byRoad). Read counts, totals and per-road answers there. Incidents come WORST FIRST: longest delayInSeconds, then those without one (closures, roadworks) by magnitude. Dense areas hold more than are shown, and a count from the visible list is WRONG whenever truncated is true. In mode alongRoute they are listed in the order the drive meets them instead, each with how far along the drive it starts (startsAfterMeters); onRoute marks those on the drive itself, the rest lie beside it. Incident locations are omitted unless response_detail is 'geometry'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"where": "<where>"
},
"name": "tomtom-get-traffic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| where | Yes | Geographic scope, selected by `mode`. `within` — an AREA: any combination of `queries` (city, district or neighbourhood names → their outlines), `areas` (an earlier result's `resolvedAreas[].area`), `boundingBox` or `geometries`; all supplied fields are unioned. `nearby` — a POINT bias with `radiusMeters`, given as `position` or `query`. `alongRoute` — a corridor `withinMeters` either side of the drive between `locations`, for incidents near a route however long; it takes `stretch` — part of the drive only. A window: `from`/`to`, from the start, in `unit` ("meters", the default; "seconds" of driving; "percent" of the length), or `last`, to the end; an end left out is the route's own. `includeCountries` (ISO alpha-2) and `includeSections` keep only those parts of it; `excludeCountries` and `excludeSections` take parts out. The Belgian part: { includeCountries: ["BE"] }; the middle fifth: { from: 40, to: 60, unit: "percent" }; the last hour: { last: 3600, unit: "seconds" }; motorways outside towns: { includeSections: ["motorway"], excludeSections: ["urban"] }. It may leave several separate stretches, listed in `searched.stretch`. For a city, district or neighbourhood, use mode `within` and name it in `queries` (e.g. ["Amsterdam"]): incidents come from its outline, or its bounding box when it has none. | |
| show_ui | No | Request the interactive map widget. Only hosts that support MCP Apps render it. It adds no coordinates to the text response. Default: false | |
| language | No | Language for incident descriptions: 'en-GB', 'de-DE', 'fr-FR', 'es-ES'. Default: 'en-GB'. | |
| maxResults | No | Maximum number of incidents to return (1-1000). Default: 100. When more match, the worst are returned. Either way `incidentSummary` covers every incident found: the total, the total delay, and counts by category, magnitude and road number. Read totals and per-road questions there rather than raising this. | |
| categoryFilter | No | Incident categories to return. Default: all categories. | |
| response_detail | No | Response detail level. 'compact' (default): essential fields and point coordinates, no geometry. 'geometry': compact plus a 'geometry' key holding a GeoJSON FeatureCollection ([lon, lat], at most 1,000 vertices per feature); use this to get coordinates to draw or process. 'full': the raw API response, lossless and many times larger. | compact |
| timeValidityFilter | No | Which incidents to return by time: 'present' (happening now), 'future' (planned, e.g. road works). Default: ['present']. |