Skip to main content
Glama

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. On every Data API plan.

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.7/5.0
Behavior4/5

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

The annotations already establish that this is a safe read-only, idempotent, open-world search. The description adds useful behavioral context beyond that: results are ranked for a seafarer, the tool is free, and it is available on every Data API plan. It still does not explain ranking logic or return shape, but it adds meaningful operational context.

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 definition is compact and front-loads the core search capability, with plan availability information included efficiently. The phrase 'ranked for a seafarer' is slightly opaque, and 'name' versus 'English name' is somewhat redundant, but there is little wasted text.

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 search tool with complete parameter documentation and rich read-only annotations, the description covers the essential search modes and cost/availability. It does not describe returned fields or ranking details, but that is a minor gap for a port-name lookup tool without an output schema.

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 already documented, including query, limit, near_lat, and near_lon. The description adds the useful note that an English port name is also accepted and frames the proximity parameters as an alternative mode, but it does not add meaning beyond the schema for limit or ranking behavior.

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 clearly states that this tool finds ports by name/UN/LOCODE/English name or by nearest position, which is a specific resource and search operation. It does not explicitly differentiate itself from sibling port tools such as port_now or resolve_destination, so it falls short of the top score.

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?

The two modes—text query or proximity—are implied as the intended ways to use the tool. However, it gives no explicit guidance on when to choose this versus sibling tools like port_now, port_events, or resolve_destination, and no exclusions or prerequisites are stated.

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