Skip to main content
Glama

Pan Urlop

show_next_hotels

Tylko gdy klient sam poprosi, żeby opowiedzieć o kolejnym hotelu. Następny hotel z już zrankowanej listy, w nowej wiadomości. Bez nowego searcha. Zwraca fakty oferty (party, rating, priceTotal, operator, flight, plaża, attributes, stars, board, room, description, reviews, airportDrive), lead, header, gallery, button i question. Opis bierze też teksty hotelu z katalogu ofert. Dojazd z lotniska przylotu jest w airportDrive (km i minuty autem, ten sam co zakładka na karcie). Przy braku trasy w cache woła publiczną usługę dojazdu i zapisuje ją. Wklej lead, header, gallery, button i question 1:1. Lead jest pierwszym wierszem prezentacji, zaraz przed headerem, potem proza bez nazwy, gwiazdek, oceny, liczby opinii, miejsca, operatora i ceny. Opisz wycieczkę z faktów, inaczej niż poprzedni, z naciskiem na party. Podaj airportDrive.label i dopisz airportDrive.note 1:1. Nie zgaduj km ani minut z hotel.airportDistanceMeters ani transfer.estimatedMinutes. Gdy airportDrive.unavailable, pomiń dojazd. Gdy party zawiera małe dziecko, powiedz wprost, ile trwa jazda — długość trasy ma wtedy znaczenie. Nie zaczynaj od „Do tej wycieczki pasuje przede wszystkim”. Nie wklejaj opisu katalogowego dosłownie. Nie opisuj zdjęć słowami. Poprzedni hotel zostaje w historii. Gdy hasMore=false, lista się skończyła.

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": "show_next_hotels"
  }
}

Input Schema

NameRequiredDescriptionDefault
tripIdNoIdentyfikator wycieczki zwrócony przez poprzednie wywołanie. Pomiń tylko przy pierwszym wywołaniu w rozmowie.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations it discloses that a missing cached route triggers a call to a public airport-drive service whose result is persisted, which explains the openWorld and non-idempotent hints, and it notes the previous hotel stays in history (state advances). It also enumerates the returned presentation fields and how airportDrive should be surfaced versus the forbidden airportDistanceMeters/transfer.estimatedMinutes fallbacks.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and trigger are front-loaded, but the bulk of the text is presentation/formatting instruction (paste lead/header/gallery 1:1, do not describe photos, do not start with a fixed phrase) that mixes output styling with tool semantics and contains near-duplicated prohibitions. It is dense rather than wasteful, but poorly partitioned.

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?

There is no output schema, and the description compensates by listing the offer facts returned plus the lead/header/gallery/button/question envelope and the airportDrive sub-structure and its unavailable case. For a high-complexity presentation tool this leaves nothing an agent needs to invoke it correctly.

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% and the single parameter (tripId) is fully documented in the schema, including when to omit it. The description adds nothing about tripId itself, so the baseline 3 applies.

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 states a specific verb and resource: it returns the next hotel from an already-ranked list, in a new message, without a new search. That scope ('następny', 'z już zrankowanej listy', 'bez nowego searcha') lets an agent separate it from the search tools, though no sibling (e.g. show_offer) is named explicitly.

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?

It gives an explicit trigger ('Tylko gdy klient sam poprosi, żeby opowiedzieć o kolejnym hotelu') and an explicit stop condition ('Gdy hasMore=false, lista się skończyła'), and rules out re-searching. What is missing is the alternative for the other case — a customer asking about one specific hotel — which is left unaddressed.

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