Skip to main content
Glama

Poplidays

Find the cheapest dates

find_cheapest_stay
Read-only

Prices the bookable stays of a given length in one rental between two dates and returns them cheapest first, with the link to book each. At most four stays are priced; when more exist, they are sampled evenly across the period.

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": {
      "rentalId": "<rentalId>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "find_cheapest_stay"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesLast arrival date to consider, YYYY-MM-DD; at most 92 days after from.
fromYesFirst arrival date to consider, YYYY-MM-DD.
adultsNo
nightsNo
childrenNo
languageNoen
rentalIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description's real contribution is the disclosure that at most four stays are priced and that larger result sets are sampled evenly across the period, plus that each result carries a booking link. That truncation/sampling behavior is non-obvious and materially affects how an agent should interpret results. It does not cover pricing units, currency, or any request limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences, front-loaded with the core operation and the return shape, then the sampling caveat. Every clause carries information and nothing is repeated from the schema or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With seven parameters, no output schema, and sparse schema descriptions, the definition should explain more about what a 'stay' result contains (total vs per-night price, currency, how adults/children/language affect the search). It covers ordering, truncation, and booking links adequately, but leaves those result-shape questions open.

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 only 29%, so the description has to carry weight, and it partially does: 'one rental' maps to rentalId, 'of a given length' to nights, and 'between two dates' to from/to. However, adults, children, and language are undocumented in both the schema and the description, leaving three parameters with no stated effect on results.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: it prices bookable stays for a given length inside one rental over a date window and returns them cheapest-first with booking links. The scope ('one rental', 'between two dates', 'of a given length') makes the operation concrete. It stops short of naming a sibling such as get_quote or get_availability to sharpen the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the scoping language: this is the tool for finding the cheapest stay of a chosen length within one rental across a date range. There is no explicit statement of when to prefer it over get_quote, get_availability, or last_minute_deals, and no prerequisites or exclusions are given.

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