Skip to main content
Glama

Coupons List

tiendanube_coupons_list
Read-onlyIdempotent

Retrieve and filter Tiendanube coupons by code, status, type, validity, and date range to review promotions and manage coupon campaigns.

Instructions

List coupons. HTTP: GET /coupons Required scope: read_coupons API version: 2025-03 Returns {count, page, per_page, total?, has_more, next_page?, items[]}.

Input Schema

NameRequiredDescriptionDefault
codeNoExact coupon code
pageNoPage number (default 1). Orders: page * per_page must be <= 10000
typeNoCoupon type (percentage | absolute | shipping)
validNoFilter by validity
fieldsNoComma-separated list of fields to return, to reduce payload size (e.g. 'id,name,variants')
statusNoCoupon status (activated | deactivated)
sort_byNoSort order
per_pageNoItems per page (default 30, max 200; max 50 for external invoices)
since_idNoOnly return records with an ID greater than this value (cursor pagination)
max_end_dateNoEnd date to
min_end_dateNoEnd date from
created_at_maxNoCreated at or before (ISO 8601)
created_at_minNoCreated at or after (ISO 8601, e.g. 2025-01-31T00:00:00-03:00)
max_start_dateNoStart date to
min_start_dateNoStart date from (YYYY-MM-DD)
updated_at_maxNoUpdated at or before (ISO 8601)
updated_at_minNoUpdated at or after (ISO 8601)
response_formatNoOutput format: 'json' (default, full data) or 'markdown' (human-readable)json

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior. The description adds useful operational context beyond annotations: the required read_coupons scope, API version 2025-03, and return envelope. It does not discuss rate limits or pagination nuances, so 4 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?

Front-loaded with the core action, followed by compact and relevant operational metadata. There is no filler; every line (endpoint, scope, version, return shape) is useful.

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 filtered-list tool with 18 optional parameters and no output schema, the description supplies the endpoint, required scope, API version, and return envelope. The schema handles filters and annotations handle safety, but the description lacks sibling-routing guidance for get vs list, leaving a small gap.

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?

All 18 parameters have schema descriptions, so the schema carries the parameter semantics. The description adds no parameter-specific meaning; it only describes the response shape and endpoint. Baseline 3 fits when schema coverage is 100%.

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 coupons') and includes the HTTP endpoint, so the core operation is clear. It does not explicitly differentiate from the sibling tiendanube_coupons_get or clarify filtering scope, so it falls short of a 5.

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

Usage Guidelines2/5

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

Provides no when-to-use guidance, prerequisites, or alternatives. An agent must infer that this is for browsing/filtering coupons rather than fetching one by ID, and no exclusion points to tiendanube_coupons_get is given.

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

Deploy Server

Other Tools