Skip to main content
Glama

List discount codes

list_coupons
Read-only

Every discount code on the account, with how many times each has been redeemed.

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
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.8/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. The description adds genuine value beyond that by disclosing return content (per-code redemption counts) and the account scoping of results; it does not mention ordering or pagination, which keeps it from a 5.

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?

One sentence, front-loaded with the resource and immediately followed by the most decision-relevant return attribute. No filler, no repetition of the title or schema.

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?

For a simple, read-only, single-optional-parameter list tool with no output schema and full schema coverage, the description covers purpose, scope and the notable return field. Minor omissions (result ordering, whether counts are lifetime totals) are the only gaps.

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?

There is a single optional parameter and its schema description is fully specified (100% coverage), including the list_accounts reference and the 'leave it out for your own account' default. The description adds nothing about the account parameter, but the schema does the work, so the baseline 3 applies.

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?

"Every discount code on the account, with how many times each has been redeemed" states a concrete resource (discount codes/coupons) and the returned attribute (redemption counts). It is clear what the tool does, but it does not differentiate itself from siblings such as coupon_stats or create_coupon, so the agent must infer that this is the plain enumeration tool.

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

Usage Guidelines3/5

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

Usage is only implied: 'Every discount code on the account' suggests the enumerate-everything case, but there is no explicit statement of when to prefer this over coupon_stats, nor any exclusion or prerequisite note. An agent can guess the intent but gets no routing help.

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.