Skip to main content
Glama

Port Search

port_search
Read-onlyIdempotent

Search the PortWatch port database (1,500+ ports globally) by name, country, or ISO3. Returns matching ports with country, continent, latitude/longitude, annual vessel counts by cargo type, top industries, and the port's share of the country's maritime imports/exports. Useful for identifying which ports would be affected by a country-level disruption, or finding the LOCODE / portid for a named port.

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": {
      "query": "Rotterdam"
    },
    "name": "port_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 20, max 100)
queryNoFree-text portname match (e.g. "Rotterdam", "Houston", "Singapore")
countryNoCountry filter, full name ("Netherlands") or ISO3 ("NLD")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / country / description
      Previous value: -"Country filter — full name (\"Netherlands\") or ISO3 (\"NLD\")"New value: +"Country filter, full name (\"Netherlands\") or ISO3 (\"NLD\")"
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "query": "Rotterdam"
      +  },
      +  {
      +    "country": "Singapore",
      +    "limit": 10,
      +    "query": "Singapore"
      +  }
      +]
  3. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive behavior, so the safety profile is covered. The description adds genuine value by enumerating the returned fields (coordinates, vessel counts by cargo type, trade share) in the absence of an output schema. It says nothing about pagination defaults, truncation, or match behavior for ambiguous queries.

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 sentences, front-loaded with the resource and filter keys before the use cases. The return-field enumeration is long but justified given there is no output schema; no filler wording.

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?

For a three-parameter, zero-required, read-only lookup with no output schema, the definition covers what is searched, how to filter, what comes back, and why an agent would call it. Nothing needed to invoke it correctly is missing.

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 coverage is 100%, with limit, query, and country each documented including default and max. The description only restates the filter dimensions ('by name, country, or ISO3') without adding format or precedence guidance, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Search') and a precisely scoped resource ('PortWatch port database, 1,500+ ports globally'), plus the three lookup keys (name, country, ISO3) and what a match contains. An agent can distinguish this from chokepoint-oriented siblings without opening the schema.

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?

Gives two concrete use cases: assessing which ports a country-level disruption would hit, and resolving a LOCODE/portid for a named port. It stops short of naming an alternative tool or stating when not to use it, so routing is clear but not fully exclusive.

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.