Skip to main content
Glama

Gangway AIS

Search ports

search_ports
Read-onlyIdempotent

Ports by name, UN/LOCODE or English name, ranked for a seafarer; or the ports nearest a position. Free. Free accounts too: their answers are 24 hours behind, with a box of at most 1 square degree and 1,000 credits a month; paid plans are live.

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": "search_ports"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoAt most this many ports (default 8)
queryNoA port name or UN/LOCODE
near_latNoOr: the ports nearest this latitude
near_lonNoOr: the ports nearest this longitude

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 cover the safety profile (read-only, open-world, idempotent, non-destructive), and the description adds genuinely useful operational context the annotations cannot: free-tier answers lag 24 hours, are capped to a 1 square degree box, and consume 1,000 credits a month while paid plans are live. It still says nothing about result ordering logic, default radius for proximity searches, or what fields come back, so the disclosure is valuable but partial.

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?

Two dense sentences, front-loaded with the capability statement followed by quota/access terms; nothing is wasted. The phrasing 'Free. Free accounts too:' is slightly clumsy and forces a re-read, but it keeps the commercial constraints compact.

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?

With no output schema, the description carries the burden of explaining results, and it does so minimally ('ranked for a seafarer') while fully explaining access tiers and limits. For a small, read-only lookup tool with four well-documented optional parameters, this is close to sufficient; only return-field and proximity-radius details are absent.

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%, so all four parameters are documented in structured form; the description's only added meaning is that query and the near_lat/near_lon pair are alternatives rather than combinable, and that the output is relevance-ranked. The 1 square degree box implicitly constrains the proximity parameters but no default radius or unit behavior is stated.

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 (ports) with two clearly separated retrieval modes: lookup by name/UN/LOCODE/English name, or proximity to a position. The phrase 'ranked for a seafarer' signals it is a relevance-ordered search rather than a live-status tool, which separates it from siblings like port_now or port_congestion, though no sibling is named explicitly.

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?

The 'or the ports nearest a position' clause, mirrored by the 'Or:' prefixes in the schema, tells the agent which parameter family to pick for which intent. It also sets expectations about free-account freshness and area caps. What's missing is any explicit 'do not use this for X' or a pointer to a different tool when live data is required.

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.

Resources