Skip to main content
Glama

Pan Urlop

get_offer_details

Fakty jednej oferty już zapisanej w sesji. Podaj xcode z sessionHotels. Nie składaj offerId. Pytanie o parametr hotelu zawsze podawaj w query — wtedy wracają też opinie gości (opinions) i fragmenty opisu oferty (offerText), a zużycie streszczenia zostaje w sesji. Pytanie o odległość albo czas dojazdu z lotniska też w query — wtedy wraca airportDrive (label z km i minutami, ten sam dojazd co zakładka na karcie), bez opinii; przy braku trasy w cache woła publiczną usługę dojazdu i zapisuje ją. Bez pytania nie podawaj query i nic nie zapisuj.

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

Input Schema

NameRequiredDescriptionDefault
queryNoPytanie klienta o parametr hotelu (plaża, basen, jedzenie, cisza, dzieci) albo o odległość lub czas dojazdu z lotniska. Przy parametrze tool dokłada opinie i opis oferty. Przy dojeździe z lotniska zwraca airportDrive. Bez pytania (cena, termin, rezerwacja) pomiń.
xcodeNoxcode hotelu z sessionHotels albo presentedHotels.
tripIdNoIdentyfikator wycieczki zwrócony przez poprzednie wywołanie. Pomiń tylko przy pierwszym wywołaniu w rozmowie.
offerIdNoDokładne ID oferty już w sesji. Nie składaj go z pamięci.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations declare openWorldHint=true, readOnlyHint=false and idempotentHint=false, and the description explains why: when no route is cached it calls a public drive service and persists it, and it warns that omitting a question means nothing is written. It also discloses a non-obvious side effect of query mode (opinions/offerText returned and 'summary usage stays in the session'), which is real value beyond the annotations. Minor gap: it does not say whether the persisted cache entry is per-session or shared, or what happens on failure of the external drive service.

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 description is front-loaded with purpose, then two clearly delineated query modes (hotel parameter vs. airport drive), then a closing negative rule; each block earns its place. The closing sentence partly duplicates the schema's 'bez pytania … pomiń' instruction, which is the only real redundancy.

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?

With no output schema, the description carries the return-value burden and does it well, naming opinions, offerText, and airportDrive with its label format. It also flags the write/cost implications of the airport-drive path. What keeps it from a 5 is the silence on tripId handling and on error or empty-result behaviour.

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 description coverage is 100% and the schema already spells out query behaviour, xcode provenance, and the 'do not assemble offerId from memory' rule, so the description largely restates structured data. It adds a little framing (xcode from sessionHotels, offerId must be an exact in-session ID) but leaves tripId — the parameter with the trickiest lifecycle rule — entirely unaddressed by the prose.

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 first sentence names a specific resource and scope: 'facts of one offer already saved in the session', so an agent knows this is a single-record lookup on session-resident data rather than a search. It does not name or differentiate itself from any sibling (e.g. show_offer, get_hotel_dossier), so disambiguation from similar offer/hotel readers is left to inference.

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?

The description gives clear conditional guidance for the query parameter (ask about a hotel parameter or airport drive time → put it in query; no question → omit it), reinforced by the price/date/booking example in the schema. However, it offers no tool-level guidance: no statement of when to choose this over show_offer, get_hotel_dossier, or get_guest_opinion_summary, and no prerequisites such as requiring a prior session or trip context beyond the passing mention of sessionHotels.

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