Skip to main content
Glama

Road incidents and closures

traffic_events
Read-only

Find current road events—accidents, roadworks, congestion, traffic control, weather closures, and planned events—for freeways, provincial highways, or cities, including locations and blockage impact.

Instructions

Current road events: accidents, roadworks, congestion, traffic control and weather closures, plus announced events (parades, planned works) for cities and provincial highways, with where they are and how much they block. Example: network "freeway", type "accident"; or network "Taipei", lat 25.0478, lon 121.517.

Input Schema

NameRequiredDescriptionDefault
latNoLatitude, to search nearby.
lonNoLongitude, to search nearby.
typeNoOnly one kind: accident, works, congestion, control, weather, disaster, event, other.
limitNoMaximum number of events to return (default 20).
keywordNoOnly results whose road or place contains this, e.g. "國道1號", "林口", "建國高架".
networkYesRoad network: "freeway" (國道, national freeways), "highway" (省道, provincial highways) or a city (Taipei, Taoyuan, Taichung, 臺北市, ...).
radiusMetersNoSearch radius in metres (default 5000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint so the safety profile is covered. The description adds genuine context beyond that: results are 'current' plus forward-looking announced events, each carries location and severity ('how much they block'), and coverage spans both cities and provincial highways. It omits pagination/rate behavior, but the extra coverage-and-severity context earns a 4.

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 sentences, front-loaded with the resource catalogue before the examples. Slightly wasteful that the example clause is vaguely worded ('or network "Taipei", lat 25.0478, lon 121.517'), but nothing is padded.

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?

There is no output schema, so the description must convey return content, and it does at a high level: each event has a location and a blocking/severity measure. The absence of any mention of result ordering, limit behavior, or the shape of the severity value is a modest gap for a 7-parameter query 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 100%, so every parameter including enum values and defaults is already documented in the schema; baseline is 3. The description's examples do add a little by showing that network accepts city names alongside a coordinate pair, but no additional syntax or constraint detail is supplied.

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?

States a concrete resource set — accidents, roadworks, congestion, traffic control, weather closures plus announced events — and the geographic scope (cities and provincial highways). That is far more specific than the title 'Road incidents and closures'. It does not, however, distinguish itself from siblings like traffic_live or traffic_signs, which also deal with road conditions.

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 only implied through two worked examples (network "freeway" + type "accident"; network "Taipei" with lat/lon), which show how to combine parameters but never say when to pick this tool over traffic_live, traffic_cameras, or traffic_signs. No exclusions or prerequisites are given.

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