Skip to main content
Glama

Find ports

find_port
Read-onlyIdempotent

Find ports by name (or part of it), UN/LOCODE (e.g. FIHEL) or two-letter country code (e.g. FI) in the port reference (World Port Index and UN/LOCODE ports): id (for port_calls), name, country, UN/LOCODE, position, harbor size (World Port Index ports only) and the radius of the port area used to detect port calls. At most 20 ports, larger harbors first. No API key needed.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of ports to return
queryNoPort name
locodeNoUN/LOCODE
countryNoISO 3166-1 alpha-2 country code

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of ports to return"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the bar is lower; the description still adds real context: a hard 20-result cap, deterministic ordering ('larger harbors first'), no API key requirement, and the caveat that harbor size only exists for World Port Index ports. It does not say what an empty result looks like, but the operational profile is well covered.

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 accepted query modes are front-loaded in the first clause, followed by the return fields, then two short constraint sentences. It is dense but every clause carries information; the only mild cost is a long comma-laden first sentence that takes effort to parse.

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 burden of describing returns and does so by enumerating every field, plus the port-area radius used for port-call detection. Combined with the result cap and ordering, an agent has everything needed to call this reference-lookup tool correctly.

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 the baseline is 3; the description earns above that by clarifying that 'query' matches on part of a name, giving format examples for locode and country, and reinforcing the 20-item ceiling that pairs with the limit parameter. It stops short of explaining precedence when multiple filters are supplied together.

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 ('find') and resource ('ports') and enumerates the three accepted lookup modes with concrete examples (FIHEL, FI). It also lists exactly what comes back (id, name, country, UN/LOCODE, position, harbor size, port-area radius), so an agent can distinguish it from vessel-oriented siblings like get_vessel or port_calls at a glance.

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?

It implicitly defines when the tool is appropriate by spelling out the three valid query forms, and the note that id is 'for port_calls' hints at the downstream sibling relationship. But there is no explicit 'use this instead of X' or exclusion guidance against port_calls or vessels_near, leaving the routing inference to the agent.

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.