Skip to main content
Glama

Kildeverk

Traffic messages: closures, road works, accidents

road_messages
Read-onlyIdempotent

Traffic messages on Norwegian roads now, from Statens vegvesen: closures, road works, lane and speed restrictions, accidents, obstructions and diversions, with road number, place, description and period. Filter by road (E6, Rv7, Fv81), county or a point.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "road_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNo
lonNo
kindNoOnly one kind: accident, animals on the road, closure or lane restriction, construction, damaged road, diversion, event, obstruction (landslide, flood, snow …), poor visibility or weather, road works, speed restriction, traffic management, vehicle obstruction, weather on the road.
roadNoA road number: 'E6', 'E39', 'Rv7' (riksvei), 'Fv81' (fylkesvei).
limitNo
countyNoA county name, e.g. 'Nordland'.
radius_kmNo
active_nowNoOnly messages in force now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered. The description adds the data provenance (Statens vegvesen) and the 'now' temporal framing that aligns with active_now defaulting to true, but says nothing about result volume, pagination, or what happens when filters combine.

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

Conciseness4/5

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

Two dense sentences: the first establishes what the data is and what it contains, the second states the filtering options. Front-loaded and free of filler, though the type enumeration is long enough to border on list-dumping.

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

Completeness4/5

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

With no output schema and 8 optional parameters, the description usefully names the returned fields (road number, place, description, period), which is exactly the compensating detail needed. The remaining gap is the unmentioned limit/radius behavior, which is a minor omission for a read-only listing tool.

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

Parameters3/5

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

Schema description coverage is 50%, and the description covers road (with E6/Rv7/Fv81 examples), county, and the point pair via 'a point'. It says nothing about kind, limit, or radius_km, so the undescribed parameters — particularly how radius_km interacts with lat/lon — remain opaque in both description and schema.

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

Purpose4/5

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

The description gives a specific resource (Norwegian traffic messages from Statens vegvesen) and enumerates the message types covered — closures, road works, lane/speed restrictions, accidents, obstructions, diversions. It is clear what the tool returns, but it never contrasts itself with near-neighbours like road_at_point or road_objects, so the point/road filtering overlap is left for the agent to resolve.

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

Usage Guidelines3/5

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

The closing sentence implies three query modes — by road, by county, or by point — which gives usable framing. However, there is no explicit when-to-use/when-not guidance and no hint about which sibling to pick when the agent wants a point lookup versus a road-number lookup.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.