Skip to main content
Glama

List promotions

list_promotions
Read-onlyIdempotent

List promotional and discount codes for an event. Use this to inspect existing promotions before creating or updating one.

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

Input Schema

NameRequiredDescriptionDefault
allNoAuto-paginate through every page.
limitNoMaximum results to return, unless all is true; also used as the page size.
eventIdNoEvent ID. Defaults to active event.

Output Schema

NameRequiredDescriptionDefault
itemsYesThe rows returned by this list operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "items": {
      +      "description": "The rows returned by this list operation.",
      +      "items": {
      +        "anyOf": [
      +          {
      +            "properties": {
      +              "discount_type": {
      +                "description": "Discount type."
      +              },
      +              "discount_value": {
      +                "description": "Discount value."
      +              },
      +              "id": {
      +                "description": "Promotion identifier."
      +              },
      +              "name": {
      +                "description": "Promotion name."
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": [
      +              "array",
      +              "string",
      +              "number",
      +              "boolean",
      +              "null"
      +            ]
      +          }
      +        ]
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "items"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / limit / description
      Added value: +"Maximum results to return, unless all is true; also used as the page size."
  3. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered structurally. The description adds only the pre-mutation inspection workflow and says nothing about pagination behavior, the effect of the 'all' flag, or what a returned promotion contains. With annotations carrying the behavioral burden, a 3 is appropriate.

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 sentences, both earning their place: the first names the resource, the second gives the workflow context. Front-loaded with the action and free of filler.

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?

An output schema exists, so return values need no explanation, and the tool is a simple zero-required-parameter list operation whose safety profile is fully annotated. The one gap is that pagination behavior, which is non-trivial given the 'all' and 'limit' interaction, is left entirely to the schema.

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 description coverage is 100% and all three parameters (all, limit, eventId) are documented in the schema itself, so the baseline would be 3. The description adds a small amount of meaning by tying the listing scope to a single event, reinforcing eventId semantics beyond the raw 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?

States a specific verb and resource ('List promotional and discount codes') and scopes it to an event, which cleanly separates it from the sibling mutation tools like create_promotion. It stops short of naming the exact sibling it replaces, but the read/list framing is unambiguous.

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?

Explicitly gives a use case: inspect existing promotions before creating or updating one, which tells the agent when this tool is the right precursor to a mutation. It gives no exclusion or 'do not use when' guidance, so it falls short of full routing coverage.

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