Skip to main content
Glama

Chokepoint Compare

chokepoint_compare
Read-onlyIdempotent

Compare chokepoint traffic status across 2 to 6 maritime chokepoints side by side and rank them by how far each one has deviated from its own trailing baseline, so an agent can spot which strait or canal is the anomalous one. Answers "which maritime chokepoint is disrupted right now", "Suez Canal transit volume vs Bab el-Mandeb", "compare Panama Canal ship counts to Hormuz", "tanker traffic anomaly across chokepoints". For each chokepoint returns the latest settled day and its total, the baseline mean over the window, the delta, the percent deviation, the direction (above, below, normal), and the per-vessel-type percent deviation; results are sorted with the largest absolute deviation first. Reports data_lag_days and a freshness_note for the whole comparison. Source is IMF PortWatch daily AIS-derived transit counts, published with a multi-day lag, so every "latest" figure is the most recent settled day rather than a live count. Names are matched forgivingly ("Hormuz", "Strait of Hormuz", "Suez", "Panama", "Bab el-Mandeb", "Malacca", "Taiwan", "Bosphorus", "Gibraltar", "Dover") or accept a portid. Examples: chokepoint_compare({chokepoints: ["Hormuz", "Suez", "Bab el-Mandeb"]}); chokepoint_compare({chokepoints: ["Suez", "Cape of Good Hope"], days: 90}); chokepoint_compare({chokepoints: ["Panama", "Suez", "Malacca", "Hormuz"], days: 14}).

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": {
      "chokepoints": [
        "Hormuz",
        "Suez",
        "Bab el-Mandeb"
      ]
    },
    "name": "chokepoint_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLength of the trailing baseline window in days for every chokepoint (default 30, min 7, max 364).
chokepointsYesTwo to six chokepoint names, aliases, or portids, e.g. ["Hormuz", "Suez", "Bab el-Mandeb"]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / chokepoints / description
      Previous value: -"Two to six chokepoint names, aliases, or portids — e.g. [\"Hormuz\", \"Suez\", \"Bab el-Mandeb\"]"New value: +"Two to six chokepoint names, aliases, or portids, e.g. [\"Hormuz\", \"Suez\", \"Bab el-Mandeb\"]"
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "chokepoints": [
      +      "Hormuz",
      +      "Suez",
      +      "Bab el-Mandeb"
      +    ]
      +  },
      +  {
      +    "chokepoints": [
      +      "Panama",
      +      "Suez",
      +      "Malacca",
      +      "Hormuz"
      +    ],
      +    "days": 14
      +  }
      +]
  3. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description still adds substantial behavior: the IMF PortWatch AIS source, a multi-day publication lag, that 'latest' means the most recent settled day rather than live data, and that data_lag_days plus a freshness_note are reported for the whole comparison. Sorting order and per-vessel-type breakdown are also disclosed, so an agent knows the shape and limits of the result before calling.

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?

The lead sentence front-loads the action, scope, and ranking logic, and the return-field enumeration is compact. There is some redundancy: the quoted query list is a long middle clause, and the three inline invocation examples largely duplicate the examples already present in the input schema.

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 carries the return contract itself and does so thoroughly, listing latest day, total, baseline mean, delta, percent deviation, direction, and per-vessel-type deviation, plus lag and freshness metadata. For a two-parameter read-only comparison tool this is everything an agent needs to call it and interpret the result.

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 both parameters are already documented, but the description adds value the schema does not: an enumerated alias vocabulary for chokepoints ('Hormuz', 'Strait of Hormuz', 'Bab el-Mandeb', 'Cape of Good Hope' via the example, etc.), forgiving name matching, and portid acceptance. The days parameter meaning is only lightly reinforced (the 90 and 14 day examples), which is fine given the schema spells out defaults and bounds.

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 and resource ('Compare chokepoint traffic status'), plus concrete scope (2 to 6 chokepoints), the ranking criterion (deviation from each one's trailing baseline), and the question it answers. It never names the closely related siblings (chokepoint_status, chokepoint_daily_traffic), so the multi-vs-single distinction has to be inferred from the '2 to 6 side by side' phrasing rather than stated.

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?

Usage context is clear and concrete: quoted user questions ('which maritime chokepoint is disrupted right now', 'Suez Canal transit volume vs Bab el-Mandeb') define exactly when this tool is the right call. There is no explicit when-not guidance or named alternative for a single-chokepoint lookup, which keeps it below a 5.

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.