Skip to main content
Glama

bts_transport_compare_ports

Read-onlyIdempotent

Compare two to eight U.S. land-border ports on one consistent official BTS crossing measure over a shared rolling window. Ranks ports by current count and returns prior-window count, reported-month completeness, percent change, exact window, stable port codes, and provenance. Use this for 'compare truck crossings at Laredo, El Paso, and Otay Mesa' or 'which selected Canada-border port has more train crossings?'. It does not compare wait times, outbound flows, or cargo value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portsYesTwo to eight exact four-digit port codes or unambiguous port names.
measureYesOfficial BTS crossing measure. Measures have different units and must not be added together.
end_monthNoCalendar month in YYYY-MM format.
response_formatNoHuman-readable markdown or machine-readable JSON. Default markdown.
trailing_monthsNoMonths per current/prior comparison window. Default 12.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / end_month / pattern
      Added value: +"^\\d{4}-\\d{2}$"
    • addedInput schema / properties / ports / items / maxLength
      Added value: +120
    • addedInput schema / properties / ports / items / minLength
      Added value: +1
    • addedInput schema / properties / ports / maxItems
      Added value: +8
    • addedInput schema / properties / ports / minItems
      Added value: +2
    • addedInput schema / properties / trailing_months / maximum
      Added value: +24
    • addedInput schema / properties / trailing_months / minimum
      Added value: +1
    • changedInput schema / properties / trailing_months / type
      Previous value: -"number"New value: +"integer"
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that: it discloses ranking behavior, that a prior-window count and reported-month completeness are returned, and that port codes are stable and provenance is included — meaningful for a tool with no output schema.

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?

Three sentences, each earning its place: action and scope first, then returned fields, then usage examples and exclusions. Front-loaded and free of redundancy.

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?

With no output schema, the description correctly compensates by enumerating the return contents (prior-window count, completeness, percent change, window, codes, provenance). Scope, usage, and exclusions are all present, leaving nothing essential missing for a correct call.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the schema already spells out the ports count bounds, the measure enum, and the trailing_months window. The description adds conceptual meaning beyond the schema by framing the window as a shared rolling current/prior comparison, tying trailing_months and end_month to a concrete comparison model.

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 specific verb (compare), resource (U.S. land-border ports), and scope (two to eight ports, one BTS measure, shared rolling window). Clear and unambiguous, but it never names its closest siblings (bts_transport_border_trend, bts_transport_search_ports), so sibling differentiation is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides two concrete invocation examples ('compare truck crossings at Laredo, El Paso, and Otay Mesa') and explicit exclusions ('does not compare wait times, outbound flows, or cargo value'). Strong when/when-not guidance, though it does not point to the alternative tool to use instead for those excluded cases.

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.