Skip to main content
Glama

getCoupons

Read-only

List coupons. Omit locationRef to list coupons across all locations, or provide it to scope to one location. Call getLocations to list locations, or getLocation to fetch one by locationId. Filter by type, the product types a coupon applies to.

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

Input Schema

NameRequiredDescriptionDefault
typeNoFilter by the product types a coupon applies to; a coupon matches when it applies to any of them. Comma-separated, one or more of: roomBookings, eventSpaceBookings, conferenceRoomBookings, meetingRoomBookings, phoneBoothBookings, stationBookings, studioBookings, hotDeskBookings, dedicatedDeskBookings, officeBookings, parkingBookings, equipmentBookings, eventTickets, shopProducts, packages, subscriptionItems.
limitNoMaximum number of coupons per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100.
locationRefNoUUID of the location whose coupons to list. Omit to list coupons across every location of the network.
nextPageTokenNoPagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page.

Output Schema

NameRequiredDescriptionDefault
couponsYes
nextPageTokenNoPass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description usefully discloses that omitting locationRef widens the result set to all locations of the network, but adds nothing on ordering, pagination behavior, or result shape beyond what the schema and output schema provide.

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?

Front-loaded with the action, then scoping, then helper routing; only the trailing "Filter by type, the product types a coupon applies to" is a fragmentary restatement of the schema. Overall tight with little waste.

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 an output schema, full parameter descriptions, and read-only annotations, the definition supplies everything needed to invoke it correctly. The only gap is that it never says what distinguishes it from getCoupon for single-record lookups.

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 description coverage is 100%, so every parameter (type, limit, locationRef, nextPageToken) is already documented with examples and constraints. The description's clause about filtering by type largely restates the schema's own wording, adding no format or matching nuance beyond it.

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?

States a specific verb and resource ("List coupons") plus the two scoping modes, so an agent can separate it from the singular getCoupon sibling. It stops short of explicitly naming getCoupon as the single-coupon alternative, leaving that inference to the reader.

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?

Gives concrete when-to guidance for locationRef (omit for all locations, provide for one) and routes to getLocations/getLocation for resolving a locationId. No exclusion is stated for the single-coupon sibling, so guidance is clear but not fully comparative.

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