Skip to main content
Glama

get_port_congestion

Read-only

Current congestion level at one or more ports: average wait hours, vessels at anchor, and congestion level (low/moderate/high/severe). Provide UN/LOCODE codes like NLRTM, GBFXT, DEHAM, CNSHA.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
port_codesYesUN/LOCODE port codes (e.g. ["NLRTM", "GBFXT"]). Get them from container details if unsure.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesFalse never appears here — failures arrive as tool errors.
codeNoOn an empty result: NOT_FOUND (no record after asking) or NO_EVENTS (record, nothing filed).
dataNo
resultYes"empty" means the query succeeded and there is nothing to report.
messageNoOn an empty result: what the emptiness means.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds content context (wait hours, vessels at anchor, low/moderate/high/severe scale) but no additional behavioral detail such as pagination, latency, or failure modes for unknown codes.

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?

Two tightly written sentences, front-loaded with what the tool returns and followed by the one input-format instruction. Every clause carries information; nothing is padding.

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?

For a simple read-only lookup with a full schema description, safety annotations, and an output schema, the definition covers what an agent needs to call it correctly. Only the lack of selection guidance against sibling tools leaves a small gap.

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% and there is a single required parameter, so the schema already documents the UN/LOCODE format. The description reinforces this with concrete examples (NLRTM, GBFXT, DEHAM, CNSHA), but that is largely a restatement of the schema baseline.

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 resource and verb (get current congestion level) and enumerates the returned metrics and congestion scale, so the tool is clearly distinguishable in intent from data-retrieval siblings like get_vessel_position. It never explicitly contrasts itself with those siblings, which keeps it at 4 rather than 5.

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: the description tells the caller to supply UN/LOCODE codes but gives no when-to-use/when-not guidance, no prerequisites, and no routing to or away from alternative tools. Adequate but with a clear gap.

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.