Skip to main content
Glama

Traffic messages

traffic_messages
Read-only

Retrieves active Finnish road traffic messages—incidents, roadworks, weight restrictions, and oversize transports—and filters them by road, area, or distance from a point.

Instructions

Active Finnish road traffic messages: incidents/announcements (accidents, bad driving conditions, closures), roadworks, weight restrictions, or exempted (oversize) transports. Filter by road number, area text (municipality/region), or distance from 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": "traffic_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude (WGS84), e.g. 60.17
lonNoLongitude (WGS84), e.g. 24.94
areaNoMunicipality or region text, e.g. 'Tampere', 'Pirkanmaa'
roadNoRoad number, e.g. 4 for valtatie 4
typeNoannouncement
limitNo
radius_kmNoRadius used with lat/lon

Output Schema

NameRequiredDescriptionDefault
typeYes
shownYes
matchedYes
messagesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety and openness are covered. The description adds that results are active Finnish traffic messages and enumerates message categories, but it does not add details such as rate limits, freshness, ordering, or result behavior beyond the annotations.

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?

Two sentences, front-loaded with the resource and scope, followed by filtering options. There is no redundant or filler wording; each sentence carries useful selection or query context.

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?

The tool has 7 optional parameters, an output schema, and read-only/open-world annotations. The description sufficiently establishes the domain, active-message scope, and main filtering strategy; missing details such as explicit type and limit guidance are largely covered by the schema.

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 71%, so the schema already explains most parameters. The description reinforces filtering by road number, area text, and distance from a point, but does not clarify the type enum mapping, limit behavior, or default radius semantics beyond what the schema provides.

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 clearly states a specific resource: active Finnish road traffic messages, including incidents, roadworks, restrictions, and exempted transports. It is easily distinguishable from weather-camera, road-weather, station, and train tools by domain, but it does not explicitly name or contrast alternatives.

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?

Usage is implied by 'Active Finnish road traffic messages' and the listed filtering modes by road, area, or distance from a point. However, it does not explicitly say when to use this tool instead of siblings such as road_weather, nor does it state exclusions.

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