Skip to main content
Glama

Pan Urlop

set_airport_transfer_limit

DestructiveIdempotent

Zapisz jeden limit dojazdu z lotniska: maxMinutes albo maxKm, albo clear=true. Nie podawaj obu jednostek naraz. „pół godziny” → 30, „20 km” → 20. „nieważne” / „bez limitu” → clear. Zapisuje MUST_HAVE i kasuje drugą jednostkę. Oferty bez znanej odległości od lotniska odpadają. Gdy w sesji są już oferty, od razu je filtruje. Potem, gdy mandatory.ready i ofert jeszcze nie było, wołaj search_offers. Po clear wołaj search_offers, żeby wróciły dalsze hotele. Nie zapisuj tego limitu w update_travel_profile. To nie jest pytanie obowiązkowe: wołaj tylko gdy klient sam poda limit albo „bez limitu”.

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

Input Schema

NameRequiredDescriptionDefault
clearNotrue gdy klient zdejmuje limit: nieważne, bez limitu, dowolnie daleko.
maxKmNoMaksymalna odległość hotelu od lotniska w kilometrach. Nie podawaj razem z maxMinutes.
tripIdNoIdentyfikator wycieczki zwrócony przez poprzednie wywołanie. Pomiń tylko przy pierwszym wywołaniu w rozmowie.
maxMinutesNoMaksymalny czas transferu z lotniska w minutach. Nie podawaj razem z maxKm.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare a destructive, idempotent write; the description adds what is actually destroyed (the opposite unit is deleted when the new limit is saved), that the value is stored as MUST_HAVE, and that offers lacking a known airport distance are dropped. It also discloses the immediate side effect that already-loaded offers are re-filtered in-session, which is not inferable from any structured field.

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 core contract (one unit or clear) is front-loaded, and each subsequent sentence carries a distinct operational instruction rather than filler. It is dense and readable, though the unit-exclusivity rule is stated twice, once in prose and once implicitly through schema wording.

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?

For a destructive write tool with no output schema, the definition covers the mutation, the destroyed data, the filtering side effect, and the mandatory follow-up calls in every branch (set, clear, offers already present). Nothing an agent needs to invoke and follow up correctly is missing.

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%, so the baseline is 3, but the description adds real interpretive meaning: natural-language normalization ('pół godziny' → 30, '20 km' → 20) and the mapping of 'nieważne'/'bez limitu' onto clear=true. The exclusivity rule for the two units repeats what the schema already states, and tripId is left to the schema.

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?

The opening sentence names a specific verb (save) and resource (one airport transfer limit) and enumerates the three mutually exclusive modes: maxMinutes, maxKm, or clear=true. It also explicitly rules out a sibling ('Nie zapisuj tego limitu w update_travel_profile'), so an agent can distinguish this tool from the profile updater without opening either schema.

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?

The definition states precisely when to call ('wołaj tylko gdy klient sam poda limit albo „bez limitu”'), that it is not a mandatory question, and what to do afterwards: call search_offers when mandatory.ready and no offers exist yet, and after clear so further hotels return. It also names the alternative tool that must not be used, closing the most likely mis-routing path.

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