Skip to main content
Glama

List store coupons

list_coupons
Read-onlyIdempotent

Store administration: works on the business's own link-in-bio store in Ignix, which the user manages as its owner. Nothing is bought or sold in this chat; the store's customers buy on the store page, paid to the business's own Stripe account. List the store's discount codes, each with id, code, discount (percentage or amount), uses and maxUses, expiresAt, active and the products it applies to ("all" when not limited). On a membership a coupon only discounts the first payment. Create one with create_coupon; switch one on or off with set_coupon_active using its id. An empty list means the store has no coupons.

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_coupons"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceIdNoDefaults to the workspace this connection is scoped to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly and idempotent annotations, the description adds domain behavior: this is the business's own store, payments occur outside the chat via Stripe, and membership coupons only discount the first payment. It also lists the returned fields and explains what an empty result means, which is substantial behavioral context.

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 description is front-loaded with the store context and then the list behavior, with clear routing sentences. Some commerce-context wording is more verbose than strictly needed for a listing tool, but it remains structured and serves the domain framing.

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?

There is no output schema, so the description carries the return-value burden and does so by naming the relevant coupon fields including id, code, discount, uses, maxUses, expiresAt, active, and product applicability. For a one-parameter read tool, this is complete enough to call correctly.

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 coverage is 100%, and the single optional workspaceId parameter is already documented in the schema as defaulting to the scoped workspace. The description adds no additional meaning about that parameter, so the baseline of 3 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 and resource: "List the store's discount codes" and enumerates the returned fields. It also distinguishes this listing action from sibling write operations such as create_coupon and set_coupon_active, so an agent can identify its role without opening the schema.

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

Usage Guidelines5/5

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

It explicitly routes related actions to alternatives: create one with create_coupon, switch one on or off with set_coupon_active. It also clarifies the empty-list condition, giving the agent a concrete interpretation of the result.

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