Skip to main content
Glama

getDiscountRedemptions

Read-only

List discount redemptions. Provide couponRef or promocodeRef. Get couponRef from getCoupons. Get promocodeRef from getPromocodes. Never invent UUIDs; only use values from prior tool responses.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of discount redemptions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100.
couponRefNoUUID of the coupon whose redemptions to list.
promocodeRefNoUUID of the promocode whose redemptions to list.
nextPageTokenNoPagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page.

Output Schema

NameRequiredDescriptionDefault
redemptionsYes
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. Changed3 schema fields changed
    • addedOutput schema / properties / redemptions / items / properties / product / properties / invoiceRef
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "ID of the invoice the discounted item is on."
      +}
    • addedOutput schema / properties / redemptions / items / properties / status
      Added value: +{
      +  "description": "Status of the redemption: pending while the purchase is not completed yet, approved once it is.",
      +  "enum": [
      +    "pending",
      +    "approved"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / redemptions / items / required
      Previous value: -[
      -  "coupon",
      -  "createDate",
      -  "customer",
      -  "locationRef",
      -  "networkRef",
      -  "product"
      -]New value: +[
      +  "coupon",
      +  "createDate",
      +  "customer",
      +  "locationRef",
      +  "networkRef",
      +  "product",
      +  "status"
      +]
  2. First observed

TDQS

A4/5.0
Behavior4/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 without the description repeating it. The description adds genuinely new behavioral constraints: refs must originate from prior tool responses and UUIDs must never be fabricated. It does not mention result size, ordering, or rate limits, but those are minor here.

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?

The core action is front-loaded in six words, and each following sentence carries a distinct instruction (required ref, two sources, no invented UUIDs). The final warning partially overlaps the two sourcing sentences, so it is slightly redundant rather than wasteful.

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 present, the description needn't describe return values, and it correctly confines itself to input acquisition and safety. Pagination is documented in the schema, not the description, which is acceptable; the only real omission is behavior with no filter supplied.

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 3 would be the baseline, but the description goes beyond the schema by supplying provenance for couponRef and promocodeRef and by implying that one of the two must be present, which the schema does not encode. Pagination via nextPageToken is left entirely to the schema text.

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?

"List discount redemptions" gives a specific verb and resource, and the description names the sibling tools (getCoupons, getPromocodes) that supply the identifying refs, so the agent can place it in the workflow. It stops short of 5 because it never says what listing happens with neither couponRef nor promocodeRef, even though the schema marks both optional.

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?

It states a concrete call precondition ("Provide couponRef or promocodeRef") and tells the agent exactly where to obtain each value, which is actionable routing guidance rather than a vague hint. It lacks explicit when-not-to-use guidance, e.g. what to do if neither ref is available or how to pick between coupon and promocode scope.

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