Skip to main content
Glama

List discount codes

agenta_discounts_list
Read-only

Retrieve a merchant's discount codes in AgentaOS with IDs, plan, active status, and discount vs tracking-only type. Set a limit to page results; this read-only call changes nothing.

Instructions

List discount codes. Returns the merchant's discount codes with their id, whether each is a discount or tracking only, the plan it applies to and whether it is active, up to limit (1 to 100). Changes nothing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoResults per page (default 10)
businessNoAct for this business you manage (its id). Omit to act as yourself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.3
  2. Removedv0.1.1
  3. Addedv0.1.2

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and 'Changes nothing' largely restates that. The description does add real value by disclosing the shape of the returned records (id, discount vs tracking, applicable plan, active flag), but omits pagination behavior beyond the limit wording.

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?

Three tight sentences with the core action front-loaded and no filler. The return-field sentence earns its place since there is no output 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?

With no output schema, the description usefully covers the returned fields, and annotations carry the safety profile. It is nearly complete, only slightly thin on pagination and the business-scoping parameter.

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 both parameters. The description restates the limit range ('up to limit (1 to 100)') but says nothing about the business parameter or its purpose of acting on behalf of a managed business, adding little beyond the schema.

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+resource ('List discount codes') and even enumerates the returned fields (id, discount/tracking, plan, active). This clearly separates it from write siblings like discounts_create and discounts_archive, though it never names discounts_show to distinguish listing from fetching a single code.

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 by the verb 'List' — an agent can infer it retrieves the collection rather than one code, but there is no explicit when-to-use or when-not-to-use guidance and no pointer to alternatives such as agenta_discounts_show.

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