Skip to main content
Glama

Aadt Top Segments

aadt_top_segments
Read-onlyIdempotent

The busiest road segments in a US state by AADT (annual average daily traffic), optionally within one county or functional class (1 Interstate ... 7 Local). From FHWA HPMS; per roadway section as reported by the state. Also the way to learn a state's route_id naming style.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 5,
      "state": "TX",
      "f_system": 1
    },
    "name": "aadt_top_segments"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoHPMS data year (e.g. 2024). Default: newest year published for the state. Call aadt_layers to see which years exist.
limitNoMax segments (1-500, default 50).
stateYesTwo-letter USPS state code (50 states, DC, PR), e.g. "CA". Required: route_id and county_id are state-specific.
countyNoOptional state-coded county_id (county FIPS code).
f_systemNoOptional functional system 1-7: 1 Interstate, 2 other freeway, 3 other principal arterial, 4 minor arterial, 5 major collector, 6 minor collector, 7 local.

Output Schema

NameRequiredDescriptionDefault
stateNo
caveatNo
sourceNo
returnedNo
segmentsNo
data_yearNo
truncatedNo
data_as_ofNo
narrowing_hintNo
total_matchingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / total_matching / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world, non-destructive behavior, so the safety profile is covered. The description adds real context beyond that: FHWA HPMS provenance and the caveat that values are per roadway section as reported by the state, implying cross-state inconsistency. It does not mention result ordering details or truncation behavior beyond the limit parameter.

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?

Three short sentences, front-loaded with the primary result and then the filters, provenance, and the naming side benefit. No filler. The trailing fragment on route_id naming is slightly disconnected but still informative.

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?

An output schema exists, so return-value explanation is unnecessary, and the parameters are fully self-documented. The description covers purpose, optional narrowing, data provenance, and a non-obvious auxiliary value (route_id conventions), which is everything needed to call it 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 coverage is 100%, so every parameter including defaults and the f_system enumeration is already documented. The description reinforces the optional county and functional-class filters and notes that route_id/county_id are state-specific, but adds little syntax or format meaning beyond the schema. Baseline 3 applies.

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 states a specific resource and ranking criterion: busiest road segments in a US state ranked by AADT, with optional county/functional-class narrowing. It is clearly distinguishable from generic search tools. It does not name a sibling it displaces, but the scope is unambiguous.

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?

It signals when the optional filters apply (county, f_system 1-7) and offers a secondary use case (learning a state's route_id naming style). There is no explicit statement of when to prefer aadt_by_route or aadt_near_point, and the year-selection guidance lives only in the schema (which points at aadt_layers).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.