Skip to main content
Glama

Compare cruises

compare_sailings
Read-onlyIdempotent

Compare two to four distinct sailings and optional exact offer IDs. Defaults to lowest current captured two-adult offer; occupancy is explicit per offer. No live or family quote.

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": {
      "sailings": "<sailings>"
    },
    "name": "compare_sailings"
  }
}

Input Schema

NameRequiredDescriptionDefault
sailingsYes

Output Schema

NameRequiredDescriptionDefault
kindYes
itemsYes
priceContextYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sailings / items / properties / offerId / description
      Previous value: -"Exact current available two-adult offer ID from get_sailing offers[].id; must belong to this sailing/event."New value: +"Exact current priced two-adult offer ID from get_sailing offers[].id; must belong to this sailing/event. Availability may be unknown; captured fares are not live inventory."
  2. Changed1 schema field changed
    • changedOutput schema / properties / items / items / properties / selectedOffer / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "availability": {
      -        "type": "string"
      -      },
      -      "bookingUrl": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "cabinClass": {
      -        "type": "string"
      -      },
      -      "contextKey": {
      -        "type": "string"
      -      },
      -      "eventSelector": {
      -        "type": "string"
      -      },
      -      "fareCode": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "firstSeenAt": {
      -        "type": "string"
      -      },
      -      "guestCount": {
      -        "type": "number"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "isCurrent": {
      -        "type": "boolean"
      -      },
      -      "lastCheckedAt": {
      -        "type": "string"
      -      },
      -      "market": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "observedAt": {
      -        "type": "string"
      -      },
      -      "passengerTypes": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "price": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "amountCents": {
      -                "maximum": 9007199254740991,
      -                "minimum": -9007199254740991,
      -                "type": "integer"
      -              },
      -              "basis": {
      -                "const": "per_person",
      -                "type": "string"
      -              },
      -              "cabinClass": {
      -                "type": "string"
      -              },
      -              "currency": {
      -                "const": "USD",
      -                "type": "string"
      -              },
      -              "firstSeenAt": {
      -                "type": "string"
      -              },
      -              "lastCheckedAt": {
      -                "type": "string"
      -              },
      -              "observedAt": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "amountCents",
      -              "currency",
      -              "basis",
      -              "observedAt",
      -              "cabinClass"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "revisionId": {
      -        "type": "string"
      -      },
      -      "sourceName": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "contextKey",
      -      "firstSeenAt",
      -      "lastCheckedAt",
      -      "isCurrent",
      -      "id",
      -      "revisionId",
      -      "cabinClass",
      -      "sourceName",
      -      "availability",
      -      "price",
      -      "observedAt",
      -      "bookingUrl",
      -      "eventSelector",
      -      "guestCount",
      -      "passengerTypes",
      -      "fareCode",
      -      "market"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "availability": {
      +        "type": "string"
      +      },
      +      "bookingUrl": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "cabinClass": {
      +        "type": "string"
      +      },
      +      "contextKey": {
      +        "type": "string"
      +      },
      +      "eventSelector": {
      +        "type": "string"
      +      },
      +      "fareCode": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "firstSeenAt": {
      +        "type": "string"
      +      },
      +      "guestCount": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "isCurrent": {
      +        "type": "boolean"
      +      },
      +      "lastCheckedAt": {
      +        "type": "string"
      +      },
      +      "market": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "nativePrice": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "amount": {
      +                "type": "string"
      +              },
      +              "basis": {
      +                "type": "string"
      +              },
      +              "currency": {
      +                "type": "string"
      +              },
      +              "interpretationVerified": {
      +                "type": "boolean"
      +              },
      +              "qualifier": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "amount",
      +              "currency",
      +              "basis"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "observedAt": {
      +        "type": "string"
      +      },
      +      "passengerTypes": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "price": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "amountCents": {
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              },
      +              "basis": {
      +                "const": "per_person",
      +                "type": "string"
      +              },
      +              "cabinClass": {
      +                "type": "string"
      +              },
      +              "currency": {
      +                "const": "USD",
      +                "type": "string"
      +              },
      +              "firstSeenAt": {
      +                "type": "string"
      +              },
      +              "lastCheckedAt": {
      +                "type": "string"
      +              },
      +              "observedAt": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "amountCents",
      +              "currency",
      +              "basis",
      +              "observedAt",
      +              "cabinClass"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "revisionId": {
      +        "type": "string"
      +      },
      +      "sourceName": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "contextKey",
      +      "firstSeenAt",
      +      "lastCheckedAt",
      +      "isCurrent",
      +      "id",
      +      "revisionId",
      +      "cabinClass",
      +      "sourceName",
      +      "availability",
      +      "price",
      +      "observedAt",
      +      "bookingUrl",
      +      "eventSelector",
      +      "guestCount",
      +      "passengerTypes",
      +      "fareCode",
      +      "market"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description's job is to add pricing semantics – and it does: it defaults to the lowest current captured two-adult offer, states occupancy is explicit per offer, and warns there is no live or family quote. That is meaningful context an agent cannot get from the annotations, though it remains compressed and slightly cryptic.

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?

Three tight sentences, front-loaded with the core action and cardinality, with constraints following. Dense but every clause carries information; 'No live or family quote' is the one phrase too terse to parse confidently.

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 explained, and the description covers cardinality, the offer-selection default, and the live-quote limitation. The remaining gap is routing guidance versus sibling lookup tools, which leaves the definition just short of fully self-sufficient.

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?

The array's cardinality bounds and 'distinct' constraint are stated, and the default-offer behavior explains what omitting offerId means. But per-field meaning for cabinClass and eventSelector is left entirely to the nested schema descriptions, and the description signal reports 0% schema coverage, so more compensation was warranted.

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?

Names a specific verb and resource ('Compare ... sailings') and pins down the scale of the operation ('two to four distinct sailings'). It is clearly distinguishable from single-item readers like get_sailing or search_cruises, though it never names those siblings explicitly.

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?

Conveys what the tool accepts (2-4 sailings, optional exact offer IDs) and its default pricing assumption, which implies the comparison use case. However, it never states when an agent should call this instead of issuing several get_sailing calls, nor any precondition or exclusion beyond 'no live or family quote'.

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