Skip to main content
Glama

Pan Urlop

search_offers

Destructive

Wyszukaj oferty w inventory. Podmienia listę ofert w sesji i kasuje poprzednie kubełki cen oraz policzone luzowanie. Ulubione zostają. Oferty, kubełki cen i liczniki luzowania pomijają hotele bez średniej gości albo ze średnią poniżej 4.0. Gdy takich hoteli jest więcej niż 10, zostają tylko te z co najmniej 100 opiniami. Gdy budżet nie jest ustalony i są hotele, zwraca kubełki cen (phase=budget_buckets, totalHotels>0) — kod sam wkleja linie i komponent wyboru budżetu, nie opisuj ich. Gdy totalHotels=0, zwraca phase=empty z relaxation i nie pytaj o budżet. Po budżecie (maxTotal albo unlimited) robi pełny search. Po phase=offers i count>0 zwraca intro, href i label („Pokaż oferty”). Wklej intro i label 1:1. To przycisk na ekran porównania (view=comparison). Nie opisuj hoteli, nie wklejaj tagów hotelu i nie pytaj o kolejny. Kolejny hotel w wiadomości tylko gdy klient sam poprosi: show_next_hotels. Nie dokładaj drugiego linku do porównania, listy ani zapisanych. Search nie zapisuje hoteli jako ulubionych. Przy 0 hoteli (phase=empty, count=0 albo totalHotels=0) relaxation ma policzone opcje zejścia z wymagań — cytuj je 1:1, nie luzuj sam. wideCount=0: wymień relaxation.cleared 1:1 i zapytaj o termin albo kierunek. Nie mów, że sprawdzono tylko budżet. Nie wybieraj hoteli sama. Plaża (piasek i wejście), odległość od plaży, odległość od lotniska i bagaż w cenie nie są wymagane i nie blokują search_offers. Nie pytaj o nie sam. Zapisuj tylko gdy klient je poda. Wolno wywołać dopiero gdy mandatory.ready = true: dorośli, jawne dzieci (albo []), kierunek z ID kierunku (resolve_destination albo any), wyżywienie (options albo any), okno dat from+to, liczba nocy, lotnisko IATA oraz experience (tekst albo any). Gdy experienceAsk=unasked, tool zwraca EXPERIENCE_NOT_ASKED i pytanie — nie szukaj. Gdy asked, a klient nie podał konkretnych potrzeb (także „nic”, „nie wiem”, „dowolne”), tool zwraca EXPERIENCE_FOLLOWUP i nie szuka. Nie zapisuj experience.any. Gdy followed_up, a nie ma konkretnych potrzeb, tool znowu zwraca EXPERIENCE_FOLLOWUP. Nie wymyślaj hoteli.

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

Input Schema

NameRequiredDescriptionDefault
reasonNo
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/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, and the description substantiates exactly what is destroyed and what survives: the session offer list is replaced, previous price buckets and computed relaxation are deleted, favorites are kept. It further discloses filtering side effects (hotels without a guest average or below 4.0 are skipped, plus a >10-hotel / 100-review cutoff) and the phase-based return contract, none of which the annotations convey.

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

Conciseness2/5

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

A single unbroken block of roughly 400+ words that mixes tool selection, return-value contracts, and prescriptive response-rendering rules ('wklej intro i [label](href) 1:1', 'nie opisuj hoteli'). Much of it is output-formatting instruction rather than definition of the tool, and the lack of structure makes the actionable selection rules hard to extract.

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 full burden of explaining returns and does so thoroughly: phase=budget_buckets vs phase=empty vs phase=offers, totalHotels/count/wideCount semantics, relaxation.cleared quoting rules, and the EXPERIENCE_NOT_ASKED/EXPERIENCE_FOLLOWUP error paths. For a stateful, destructive search tool this is an adequately complete specification.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50% and the description adds no meaning to either input: tripId is documented only in the schema, and 'reason' is documented nowhere, yet the description never mentions either field. Instead it elaborates session state (mandatory.ready, experienceAsk) that is not in the input schema, leaving the actual parameter contract under-explained despite the high-risk write behavior.

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 opening line 'Wyszukaj oferty w inventory' gives a specific verb plus resource, and the description later signals its scope (full search after budget, session-replacing offer list) and names a sibling (show_next_hotels) that handles the follow-on case. It is clear what the tool does, though the purpose statement is buried under a large volume of procedural output-formatting rules rather than stated crisply up front.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit preconditions ('Wolno wywołać dopiero gdy mandatory.ready = true') with an enumerated readiness checklist, explicit when-not-to-call states (EXPERIENCE_NOT_ASKED, EXPERIENCE_FOLLOWUP with 'nie szukaj'), and routes the next-hotel case to show_next_hotels. It even states which inputs (beach, distances, luggage) must not block or be asked about, which is unusually complete guidance for an agent selecting a tool.

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