Skip to main content
Glama

get_road_situations

Read-onlyIdempotent

Retrieve current road incidents and disruptions on Sweden’s state roads—accidents, road works, obstacles, restrictions—filtered by county or point radius and ordered by severity and distance.

Instructions

Get current road incidents and disruptions on the Swedish state road network: accidents, road works, obstacles, restrictions and traffic messages, each with severity (code 1-5, higher is more severe), road number, location, start/end time and coordinates. Filter by county and/or by a point plus radius (latitude, longitude, radiusKm); results are ordered by severity, then distance. Message types are Swedish, e.g. "Olycka" (accident) and "Vägarbete" (road work). Use get_road_weather for measured road conditions instead. fetchedAt is when this server got the response from Trafikverket; the result does not refresh afterwards, so call the tool again if fetchedAt is old. lastUpdated is when Trafikverket last changed the record: an old value does not necessarily mean stale data, and it does not confirm that the data is still current. Returns an error result (isError: true) if TRAFIKVERKET_API_KEY is missing/invalid or the Trafikverket API is unreachable. Coverage: Sweden only (Trafikverket data).

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": "get_road_situations"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of situations to return (1-100)
countyNoOptional county filter: Swedish county name (e.g. "Stockholm", "Västra Götaland") or code (e.g. 14)
latitudeNoOptional latitude of a point to search around (use together with longitude)
radiusKmNoSearch radius in kilometres around latitude/longitude (0.5-200, default 25)
longitudeNoOptional longitude of a point to search around (use together with latitude)
messageTypeNoOptional message type filter, in Swedish as used by Trafikverket, e.g. "Olycka" (accident) or "Vägarbete" (road work)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly/idempotent/openWorld) by disclosing that fetchedAt is the server's fetch time and results do not refresh, that lastUpdated does not confirm currency, and that an isError result appears when TRAFIKVERKET_API_KEY is missing or the API is unreachable. It also gives result ordering (severity, then distance) and notes that message types are Swedish strings.

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?

Front-loaded with purpose, output contents, and ordering before the freshness caveats. The fetchedAt/lastUpdated explanation is two dense sentences that earn their place by preventing staleness misreads, though the overall block is long enough that an agent must read past the first sentence to find the filtering modes.

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?

With no output schema, the description carries the return-value burden and does so: it lists the fields (severity, road number, location, start/end times, coordinates), the sort order, and the failure mode. For a read-only aggregator tool over an external API, nothing needed to call or interpret it correctly is missing.

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; the description still adds value by defining the severity scale (code 1-5, higher is more severe), clarifying that county and the latitude/longitude/radiusKm pair can be combined ('and/or'), and translating example message types. It stops short of explaining default limit or radius behavior, which the schema already handles.

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?

States a specific verb and resource (current road incidents/disruptions on the Swedish state road network) and enumerates what is covered: accidents, road works, obstacles, restrictions and traffic messages. It also names the sibling it is not (get_road_weather) and scopes coverage to Sweden, so an agent can separate it from the other tools without opening any 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?

Explicitly routes the agent: 'Use get_road_weather for measured road conditions instead,' giving both the alternative and the condition that selects it. It also explains the two filtering modes (county and/or point plus radius) and the Sweden-only coverage constraint, leaving little to inference.

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