Skip to main content
Glama

MAQAMI Travel

get_guests_guestid_vouchers

Read-onlyIdempotent

Overview

Retrieve all vouchers available to a specific guest, including discount codes, validity periods, and usage limits.

When to Use

  • Voucher display - Show available vouchers on a guest's account page

  • Discount management - Check which vouchers a guest can use

  • Validity checking - Verify if vouchers are still active

  • Usage tracking - Monitor voucher usage counts

What You Get

  • Voucher list - All vouchers assigned to the guest

  • Discount details - Type (percentage/fixed), value, and currency

  • Validity period - Start and end dates for each voucher

  • Usage information - Current usage count and usage limits

  • Status - Active/inactive status of each voucher

Quick Start

Provide the guest ID in the URL path. Returns all vouchers available to that guest.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guestIdYesNumeric ID of the guest to fetch vouchers for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so safety is covered structurally. The description adds genuinely useful behavioral context beyond that: the shape of returned vouchers (discount type/value/currency, validity dates, usage counts, active status) and the fact that it returns ALL vouchers for the guest.

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?

Heavily structured with markdown headers and front-loaded purpose, so an agent can skim efficiently. It is a little padded ('Quick Start' largely restates the purpose), but every section is short and each earns most of its place since no output schema exists.

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 and a single trivially-documented parameter, the description compensates well by enumerating the return fields and status. Nothing critical is missing for a safe read-only list call; only sibling routing/all-vouchers-vs-filtered nuance is absent.

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?

Only one parameter exists and schema coverage is 100%, so the schema already defines guestId fully. The description adds only a minor note ('provide the guest ID in the URL path'), which is baseline-level value; the 3 baseline is appropriate.

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 description states a specific verb+resource ('Retrieve all vouchers available to a specific guest') with clear scoping. It is readily distinguishable from the sibling get_vouchers (all vouchers) and get_vouchers_voucherid (single voucher), since it is anchored to a guest.

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 'When to Use' section gives four concrete scenarios (display, discount management, validity checking, usage tracking), which is well above implicit guidance. However, it names no alternatives or exclusions, so it falls short of the explicit when-not/routing-to-sibling standard.

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