Skip to main content
Glama
TomTom MCP Server

TomTom MCP Server

Official

TomTom Get Traffic

tomtom-get-traffic
Read-onlyIdempotent

Reports 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

NameRequiredDescriptionDefault
whereYesGeographic 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_uiNoRequest the interactive map widget. Only hosts that support MCP Apps render it. It adds no coordinates to the text response. Default: false
languageNoLanguage for incident descriptions: 'en-GB', 'de-DE', 'fr-FR', 'es-ES'. Default: 'en-GB'.
maxResultsNoMaximum 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.
categoryFilterNoIncident categories to return. Default: all categories.
response_detailNoResponse 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
timeValidityFilterNoWhich incidents to return by time: 'present' (happening now), 'future' (planned, e.g. road works). Default: ['present'].

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A4.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description nevertheless adds substantial behavior beyond that: deduplication across areas ('An incident found in two areas counts once'), the 10,000 km² area cap, worst-first ordering, the meaning of `truncated` (a visible-list count is WRONG when true), and that geometry is omitted unless response_detail is 'geometry'. Those are genuine operational disclosures.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but never padded: safety-critical constraints (area cap, truncated counts, geometry omission) are front-loaded and each sentence carries a distinct rule. The only minor cost is that the within-mode guidance appears both in the opening and again in the where paragraph, a small redundancy against an otherwise tight structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter tool with three mutually exclusive modes and no output schema, the description covers what an agent needs to call it correctly: mode selection, dedup, ordering, truncation, and where to read counts (incidentSummary covers ALL incidents, not just the returned page).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3 and the schema already explains every parameter. The description still adds selection meaning on top: which mode to pick for an area vs a point vs a corridor, the concrete `stretch` windows (Belgian part, middle fifth, last hour), and that `alongRoute` accepts a trip's `locations` without a prior plan-route call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource — 'Report current traffic incidents — accidents, closures, jams, roadworks — for an area' — and immediately distinguishes itself from tomtom-plan-route and from the locate/plan tools. An agent can tell what this does and what it does not do without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing rules: 'Use this first for any question about traffic, delays or road conditions', 'For the delay on a drive use tomtom-plan-route instead', 'For incidents NEAR a drive … use mode alongRoute', and 'For a radius around a landmark use mode nearby … no locate call first'. When-to-use, when-not-to-use and named alternatives are all present.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.