Skip to main content
Glama

get_road_weather

Read-onlyIdempotent

Retrieve measured road weather from nearby Trafikverket stations for a given point, including air and road surface temperature, grip, ice, snow, water, wind, and precipitation.

Instructions

Get measured road weather from Trafikverket's roadside stations nearest to a point: air temperature (°C), humidity (%), dew point (°C), visibility (m), wind speed (m/s) and direction (degrees), road surface temperature (°C), grip, ice/snow/water on the road, and precipitation and wind over the last 10 minutes. These are actual observations, not a forecast; use a forecast source such as SMHI for future weather. Samples can be up to 2 hours old, so check each station's ageMinutes (its age at fetchedAt). 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. 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

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": {
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "get_road_weather"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of nearest stations to return (1-20, default 3)
latitudeYesLatitude of the point to find road weather stations near
radiusKmNoSearch radius in kilometres (1-100, default 25)
longitudeYesLongitude of the point to find road weather stations near

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the existing read-only and open-world annotations, it discloses data freshness limits (samples up to 2 hours old), the meaning and staleness of fetchedAt, error behavior when the API key is missing or Trafikverket is unreachable, and Sweden-only coverage. These are exactly the operational details an agent needs before relying on the result.

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?

The description is dense but well organized: it front-loads the core purpose, then covers forecast distinction, data age, fetchedAt semantics, error behavior, and geographic coverage. Every sentence contributes actionable information without repetition.

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 tool without an output schema, the description sufficiently explains the return fields, age metadata, error result, and coverage limits. An agent has enough information to decide whether to call it and how to interpret the response correctly.

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 100%, and the schema already documents latitude, longitude, radiusKm, and limit with ranges and defaults. The description adds only the general idea of 'nearest to a point' and does not provide additional parameter-level meaning beyond the schema.

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?

The description uses a specific verb and resource: 'Get measured road weather from Trafikverket's roadside stations nearest to a point.' It then enumerates exactly what measurements are returned, making the tool immediately distinguishable from forecast and other transport-weather siblings.

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?

It explicitly states when this tool is appropriate (actual observations) and when it is not (future weather), directing the agent to a forecast source such as SMHI instead. It also tells the agent to re-call the tool when fetchedAt is old, giving concrete refresh guidance.

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