Skip to main content
Glama

Search ships

search_ships
Read-only

Find ships by name, MMSI (9 digits) or IMO number (7 digits): every ship with a Shiptrail page, any class, on the map now or heard in the last year. Ships on the map now come first. A name may be typed in Latin letters, Japanese kana, Korean hangul, Cyrillic or Greek: ships broadcast their names in Latin letters, so it is searched by its Latin spelling, and readAs says what was searched. Use get_ship with an MMSI for the whole record.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_ships"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoAt most this many ships.
queryYesA ship's name or part of it (3 characters or more; 2 in kana, hangul, Cyrillic or Greek when they spell 3 Latin letters), an MMSI or an IMO number.

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the list may be short.
queryYes
shipsYes
readAsNoWhat was searched when the query as typed matched no ship: a name in another script spelled in Latin letters, or the number inside a label such as "imo 9417206".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"A ship's name or part of it, an MMSI or an IMO number."New value: +"A ship's name or part of it (3 characters or more; 2 in kana, hangul, Cyrillic or Greek when they spell 3 Latin letters), an MMSI or an IMO number."
    • changedInput schema / properties / query / minLength
      Previous value: -3New value: +2
    • addedOutput schema / properties / readAs
      Added value: +{
      +  "description": "What was searched when the query as typed matched no ship: a name in another script spelled in Latin letters, or the number inside a label such as \"imo 9417206\".",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / ships / items / properties / lastHeard / maxLength
      Added value: +24
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the readOnly/openWorld annotations by disclosing result ordering (on-map ships first), the temporal and class scope of the index, and the non-obvious transliteration behavior with the readAs response field. Minor gap: nothing about pagination or truncation behavior as limit is approached.

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?

Three tight sentences: identity/scope first, ranking second, the transliteration caveat and sibling hand-off last. Every sentence carries information an agent would otherwise have to guess, with no filler.

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?

An output schema exists, so return shape needn't be described, and the description covers the unusual parts (search scope, ordering, readAs). What remains unstated is edge-case handling such as zero results or behavior at the limit ceiling of 20.

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, but the description adds real meaning: it explains that names are matched by Latin spelling regardless of the script typed and why, which the schema cannot express. The digit counts for MMSI/IMO and the query constraints are largely restated from the schema, so it stops short of a 5.

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 (ships) plus the exact match keys (name, 9-digit MMSI, 7-digit IMO) and the full scope of the index (every ship with a Shiptrail page, any class, on the map now or heard in the last year). It also explicitly contrasts itself with get_ship, so an agent can separate the two without reading schemas.

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 a clear routing rule: use get_ship with an MMSI when the whole record is wanted, implying search_ships is for discovery. It doesn't address the other plausible alternatives (get_ships_near for proximity, search_ports for ports), but the search-vs-fetch distinction is the important one and it is 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.