Skip to main content
Glama

Pan Urlop

resolve_operator

DestructiveIdempotent

Zmapuj biuro podróży na kody biur z katalogu i zapisz filtr ofert. Wołaj tylko gdy klient sam prosi o oferty konkretnego biura albo kilku (Itaka, Rainbow, „tylko z Itaki”). Nie pytaj o biuro z własnej inicjatywy — to nie jest krok rozmowy. Podawaj nazwy tak, jak napisał klient, nie kody. Nie twierdź, że biura nie ma, zanim tool zwróci unmatched. Po resolved kod zapisuje operators. „Wszystkie biura” / „bez filtra” → clear=true. Przy ambiguous dopytaj, które biuro. Gdy klient dopisuje kolejne („dodaj”, „też”), przekaż tę frazę w query.

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

Input Schema

NameRequiredDescriptionDefault
clearNotrue gdy klient zdejmuje filtr: wszystkie biura, bez filtra biura, dowolne biuro.
queryNoNazwy biur z wiadomości klienta. Nie podawaj kodów biur.
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/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, so the write nature is known; the description adds real value by disclosing that resolved codes get persisted into operators, and by defining the unresolved/ambiguous outcome branches that determine the next agent action. It stops short of saying whether a new query replaces or appends to an existing filter, which matters given destructiveHint=true.

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 purpose is front-loaded and each subsequent sentence encodes a distinct operational rule rather than filler. It is dense and rule-list-like, with slight overlap between the description's 'no codes' instruction and the schema's own constraint, but nothing is wasted.

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 3-parameter mutation tool with no output schema, the description covers the decision branches an agent needs (resolved, unmatched, ambiguous, clear) and the follow-up-call pattern. It leaves the exact return payload shape and the replace-vs-append semantics of repeated calls unstated, which is the main remaining gap.

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 goes beyond the schema by ruling out codes in query (the schema only says 'do not provide codes' implicitly), instructing that names be passed verbatim as the customer wrote them, and explaining that an additive phrase like 'dodaj'/'też' should be passed as the query in a follow-up call. tripId gets no added meaning beyond 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 and resource — mapping a travel agency onto catalog office codes — and states the side effect (saving the offer filter). That distinguishes it cleanly from siblings like lookup_operator_terms (term lookup) and search_offers (offer retrieval), which an agent can tell apart without opening any 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?

Explicit when-to-use (only when the customer names an agency or several), explicit when-not (do not ask about agency on your own initiative; it is not a conversation step), and explicit alternatives for the edge cases: ambiguous → ask which agency, unmatched → do not claim nonexistence, 'all agencies' → use clear instead. Little is left to 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