Skip to main content
Glama

Pan Urlop

suggest_relaxed_criteria

DestructiveIdempotent

Gdy search ma 0 hoteli, policz ile wróci po zejściu z jednego wymagania. Bez apply zwraca options (label, hotelCount, approx) — cytuj liczby 1:1, nie wymyślaj ich i nie luzuj sam przez update_travel_profile. Z apply=id zapisuje wybraną opcję. Zaraz potem wołaj search_offers. Gdy wideCount=0, nie udawaj opcji — pytaj o daty albo kierunek.

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

Input Schema

NameRequiredDescriptionDefault
applyNoId opcji z relaxation.options, którą klient wybrał. Bez tego pola tool tylko liczy opcje i niczego nie zmienia.
reasonNo
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 a mutating, destructive, idempotent, closed-world tool; the description matches by clarifying that without apply it only computes and changes nothing, while apply=id persists the chosen option. It adds useful behavioral rules beyond the annotations (quote numbers 1:1, never invent counts, hand off to search_offers). It stops short of saying what applying overwrites or whether the change is reversible, which matters for a destructiveHint=true tool.

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?

Dense but well ordered: precondition, behavior without apply, behavior with apply, follow-up call, then the degenerate wideCount case. Nearly every clause carries an instruction, though the run-on flow of imperative clauses could be split for faster scanning.

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 shape of the returned options and the meaning of wideCount, plus the required follow-up call — enough to drive the tool correctly. Gaps remain around the reason parameter and the permanence/scope of the applied change, which matter given destructiveHint=true.

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?

The description explains the apply parameter's dual behavior (compute-only vs. persist) and names the output fields, which substitutes for the missing output schema. But the reason parameter is undocumented in both schema and description, and the tripId semantics ('omit only on the first call in a conversation') live solely in the schema, so the description does not fully compensate for the 67% coverage.

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 clause gives a precise verb and trigger: when a search yields 0 hotels, count how many come back after relaxing one requirement. It also names the return payload fields (label, hotelCount, approx) and explicitly distinguishes itself from update_travel_profile, so an agent knows which sibling performs which kind of relaxation.

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 (search returns 0 hotels), explicit when-not (do not self-relax via update_travel_profile), explicit follow-up (call search_offers right after applying), and explicit fallback (when wideCount=0, do not fabricate options — ask about dates or destination). This is close to a full decision tree.

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