Skip to main content
Glama

getStaysByAmenities

Read-only

Find all stays that have specific amenities. Searches both stay-level amenities (referenced by tbStayFacilities) and room-level amenities (referenced by tbRoomFacilities). Use matchType 'any' to find stays with at least one amenity, or 'all' to find stays with all requested amenities. Can optionally filter by minimum WiFi download speed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default: 25)
amenitiesYesArray of amenity names to search for (e.g., ['WiFi', 'Air Conditioning', 'Pool']). Use getAllAmenities to see all available amenities.
matchTypeNoOPTIONAL: 'any' (default) finds stays with at least one amenity, 'all' finds stays with all amenities
minWifiSpeedNoOPTIONAL: Minimum WiFi download speed in Mbps (default: 0). Only returns stays with WiFi speed at or above this threshold.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / amenities / description
      Previous value: -"Array of amenity names to search for (e.g., ['WiFi', 'Air Conditioning', 'Pool'])."New value: +"Array of amenity names to search for (e.g., ['WiFi', 'Air Conditioning', 'Pool']). Use getAllAmenities to see all available amenities."
    • changedInput schema / properties / matchType / description
      Previous value: -"Match any amenity (default) or require all amenities"New value: +"OPTIONAL: 'any' (default) finds stays with at least one amenity, 'all' finds stays with all amenities"
    • changedInput schema / properties / minWifiSpeed / description
      Previous value: -"Minimum WiFi download speed in Mbps (default: 0)"New value: +"OPTIONAL: Minimum WiFi download speed in Mbps (default: 0). Only returns stays with WiFi speed at or above this threshold."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds meaningful behavioral details—that the tool searches both stay-level (tbStayFacilities) and room-level (tbRoomFacilities) references and supports two match modes—which goes beyond annotation information.

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?

The description is three sentences long, front-loaded with the main purpose, and every sentence adds value (purpose, match behavior, optional filter). There is no redundancy or filler.

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?

Despite lacking an output schema, the description sufficiently covers the tool's operation: it identifies what is searched, the two scanning levels, the matchType behavior, and the optional WiFi speed threshold. For a read-only search tool with these parameters, this is complete.

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 parameters are well-documented. The description enriches the schema by explaining the dual-level search scope (referencing tbStayFacilities and tbRoomFacilities) and clarifying the matchType semantics, adding context not present in the parameter descriptions.

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 'Find all stays that have specific amenities' uses a specific verb and resource, and the subsequent detail about searching both stay-level and room-level amenities clearly defines the tool's scope, distinguishing it from amenity-specific siblings like getStaysByWiFiSpeed.

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

Usage Guidelines4/5

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

The description provides explicit instructions on using matchType 'any' vs 'all' and the optional minWifiSpeed filter, giving clear context for when to apply these options. However, it does not mention alternative tools for amenity-specific searches or exclusions, so it falls short of full 5.

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.