Skip to main content
Glama
thenavidm
by thenavidm

List discount codes

list_discount_codes
Read-onlyIdempotent

Retrieve a paginated list of discount codes for a program, or filter by partner, discount, or code to audit and manage promotions.

Instructions

Retrieve a paginated list of discount codes in a program or filtered by partner, discount, or code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoFilter discount codes by the alphanumeric code (e.g. `PARTNER10OFF`).
pageNoThe page number for pagination. The first page is `1`.
accountNoExact configured private workspace profile label; not a tenant or provider account ID.
page_sizeNoThe number of items per page.
partner_idNoThe ID of the partner to retrieve discount codes for. If omitted, returns discount codes for the whole program.
discount_idNoFilter discount codes by discount ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds that results are paginated and can be scoped to a program or partner, which is modest added context but not rich behavioral detail beyond the annotations.

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?

A single efficient sentence that front-loads the pagination and filtering behavior. No wasted words, though it is brief enough to leave some gaps unfilled.

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 read-only list tool with full annotation coverage and no output schema, the description covers the essential scope (paginated, filterable). It is adequate, with only minor room to describe ordering or default page-size behavior.

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 the schema already documents all six parameters thoroughly. The description's mention of filtering by partner, discount, or code mirrors existing schema descriptions without adding format or default details, 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?

States a specific verb (Retrieve) and resource (discount codes) with the scope of filtering by partner, discount, or code. It is clearly a read/list operation distinguishable from create_discount_code and delete_discount_code, though it does not name those siblings explicitly.

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?

The description implies usage (list codes, optionally filtered) but gives no explicit when-to-use guidance, no prerequisites, and does not point to alternative sibling tools. Guidance is inferred rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.