Skip to main content
Glama

get_lane_closures

Read-only

Identify active California lane and road closures reported by Caltrans, filtered by route, district, or nearby coordinates to see what is blocking traffic now.

Instructions

CALIFORNIA ONLY: Caltrans lane and road closures physically in place RIGHT NOW. For closures and roadwork in any other state use get_nearby_events (kinds='closure').

Data: the Caltrans Lane Closure System (LCS). Only closures that crews have actually established (CHP code 1097) and not yet picked up are returned - scheduled-but-not-started closures are excluded, so this is "what is blocking lanes now", not a construction calendar. Refresh: 5-minute cache over per-district Caltrans feeds.

Filters: route (e.g. "I-80", "US 101", "1"); district (Caltrans district 1-12, e.g. 3 = Sacramento/Tahoe, 4 = Bay Area, 7 = Los Angeles); center "lat,lon" with radius_km - closures whose begin or end point is inside the circle. For a town or place, center is the filter that catches work on EVERY road around it, including small state routes.

Read closure_class on each record, it is what the closure means for through traffic:

  • "full-roadway": the road itself is closed in that direction. The only class that means "you can't drive through".

  • "ramp": a ramp or connector is closed (even when the raw record says "Full", that means the ramp is fully closed, not the highway).

  • "one-way-traffic": alternating single lane with flagging; passable with delays. Common on two-lane mountain roads.

  • "alternating-lanes", "moving", "traffic-break": rolling or brief work; minor delays.

  • "lane": some lanes closed; the lanes field says how many of how many. estimated_delay_minutes is present when crews reported one. Shoulder-only work is excluded entirely.

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_lane_closures"
  }
}

Input Schema

NameRequiredDescriptionDefault
routeNo
centerNo
districtNo
radius_kmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.82.1

TDQS

A5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint/openWorldHint; the description adds real behavioral context on top: the upstream source (Caltrans LCS), the inclusion rule (CHP code 1097 established and not yet picked up), the exclusion of shoulder-only work, and the 5-minute per-district cache. It also explains how to interpret the returned closure_class values, which is behavior an agent cannot get from 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?

The hard constraint ('CALIFORNIA ONLY') is front-loaded, and the remainder is organized into labeled blocks (Data, Refresh, Filters, closure_class interpretation) rather than free prose. Length is justified because there is no output schema and zero schema descriptions, so the class legend and filter format notes have nowhere else to live.

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 no-output-schema, 0%-coverage, 4-param tool, the description supplies everything needed to call and interpret it: each filter's format and semantics, which class means 'cannot drive through', what lanes/estimated_delay_minutes mean, and what is excluded. No material gap remains for an agent to act correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden and does it: route format examples ('I-80', 'US 101', '1'), district domain and examples (1-12, 3 = Sacramento/Tahoe, 4 = Bay Area, 7 = Los Angeles), center as 'lat,lon', and the geometric inclusion rule (closures whose begin or end point is inside the radius_km circle). It also advises which filter best answers a place-based question, which the schema cannot convey.

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+resource ('lane and road closures physically in place RIGHT NOW') and immediately bounds the scope to California via the Caltrans LCS. It also names the sibling (get_nearby_events with kinds='closure') that covers the cases this tool does not, so an agent can route without opening either 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?

Explicit when-to-use ('closures physically in place RIGHT NOW'), explicit when-not (any other state → get_nearby_events), and it clarifies the temporal distinction by excluding scheduled-but-not-started closures so it is not mistaken for a construction calendar. Filter-selection advice is also given (use center for a town/place because it catches every road around it).

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