Skip to main content
Glama

Pan Urlop

resolve_hotel_year

DestructiveIdempotent

Zmapuj wiek hotelu na minimalny rok budowy/remontu z katalogu (Accommodation.BuildRenovationYear). Wołaj gdy klient mówi o nowych hotelach, remoncie, roku budowy. Liczba w tekście wygrywa. Fraza bez roku (new hotels / nowe hotele) → 2020. Nie zgaduj roku z dat wyjazdu. Po resolved zapisuje preferences.hotelBuildRenovationYear.

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

Input Schema

NameRequiredDescriptionDefault
queryYesFraza klienta o wieku hotelu, np. nowe hotele, od 2015, po remoncie 2018, hotel z 2010.
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
Behavior3/5

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

The description correctly discloses the write side effect (it persists preferences.hotelBuildRenovationYear), which is consistent with readOnlyHint=false. However, destructiveHint=true is not explained at all: the description never says whether an existing stored preference is overwritten or how that affects later searches, which is precisely the destructive aspect an agent needs to know. It also does not state what is returned after a successful resolution.

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?

Front-loaded and rule-dense: purpose first, then trigger, precedence, fallback, and finally the side effect. The telegraphic style is efficient, though the abrupt fragments around the 2020 fallback could be slightly clearer to a non-Polish reader.

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 supplies the decision rules an agent needs (trigger, precedence, default, negative case) and flags the persisted side effect. It falls short only on what the resolved result looks like and on the destructive/overwrite semantics implied by the annotations.

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% and both parameters are documented in the schema, so the baseline is 3. The description adds genuine semantics beyond the schema for the query parameter: the no-year fallback of 2020, the rule that an explicit number overrides phrasing, and the prohibition on deriving years from trip dates.

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 (map) and resource (hotel age → minimum build/renovation year) and names the exact catalog field it resolves against (Accommodation.BuildRenovationYear). This is clearly distinguishable from siblings such as resolve_destination or resolve_room_type, which handle different entities.

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?

Explicit trigger conditions are given ('new hotels', 'renovation', 'build year') plus a negative rule ('don't guess the year from travel dates') and a precedence rule ('a number in the text wins'). No alternative tool is named for the case where the client mentions a year for a different purpose, and there is no explicit when-not-to-call beyond the travel-date exclusion.

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