Skip to main content
Glama

Pan Urlop

resolve_destination

DestructiveIdempotent

Zmapuj kierunek klienta na ID kierunku albo atrybut lokalizacji. Wołaj po kraju, regionie, mieście, literówce, kontynencie oraz atrybutach (egzotyka, bez paszportu, przy plaży, góry, narty, city break). Kilka opcji z „albo” zapisujesz jako LUB (combine=or), nie jako zawężenie. Nie wymyślaj ID. Gdy unmatched albo ambiguous — dopytaj. Po resolved nadpisuje cały kierunek w sesji.

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_destination"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesFraza klienta: kraj, region, miasto, kontynent albo atrybut lokalizacji (egzotyka, bez paszportu, przy plaży, góry, narty, city break).
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.3/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, and the description supplies the missing specifics: resolving overwrites the entire destination stored in the session. That is exactly the kind of consequence context annotations cannot convey. It does not cover permission needs or the shape of the resolved/unmatched/ambiguous responses, so it stops short of 5.

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?

Purpose is front-loaded, sentences are short and functional, and the warnings (no invented IDs, ask on ambiguity, overwrite) are ordered sensibly. It loses a point for spending words on a combine=or mechanism absent from the schema, which is noise for the caller.

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?

For a two-parameter resolver with no output schema, the description covers the important unknowns: accepted input categories, the ambiguity fallback, and the session-overwrite side effect. The dangling combine=or reference and the absence of any hint about what resolved/ambiguous returns leave a small residual gap.

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%, so the schema already documents query, its string-or-array forms, and tripId; baseline is 3. The description adds the advisory 'don't invent IDs', but its 'combine=or' instruction refers to a parameter that does not exist in the schema, so the one piece of genuine parameter-level guidance is not actionable.

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+resource pair: maps the client's destination phrase to a destination ID or location attribute. It is clearly differentiated from the sibling resolvers (resolve_hotel_year, resolve_operator, resolve_room_type) by the resource being resolved, so an agent can pick it without opening the 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?

Gives explicit invocation triggers (country, region, city, typo, continent, attributes such as egzotyka / bez paszportu / przy plaży), an explicit disambiguation rule for 'or' lists, a prohibition against inventing IDs, and an explicit escalation rule when the result is unmatched or ambiguous. This is when/when-not guidance with concrete conditions rather than inference.

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