Skip to main content
Glama

Cupons públicos

list_coupons
Read-only

Lista os cupons públicos publicados pelo Nerd Ofertas (catálogo da casa, só leitura): código, descrição, loja (store), validade e os campos do desconto (discountType, discountValue, minPurchase, maxDiscount, isCashback, isSoldOut). Não traz link: para usar o cupom, gere o link de afiliado do usuário para a loja com convert_links. Cupom sem código (code null) se resgata pelo link da loja. Só os cupons vigentes agora. Filtre com "q" (procura no código, na descrição e no nome da loja) e a loja com "site" (nome, slug ou domínio) ou "site_id" (de list_coupon_categories). A resposta traz "total", "has_more" e "next_offset".

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
qNoTexto procurado no código do cupom, na descrição e no nome da loja (sem diferença de acento).
siteNoOpcional. Nome, slug ou domínio da loja (sem caixa), alternativa ao site_id. Ex.: "shopee".
limitNoMáximo de cupons (1 a 200; padrão 50).
offsetNoDeslocamento para paginação (0 = início). Para a próxima página, use o next_offset da resposta.
site_idNoOpcional. ID da loja (de list_coupon_categories).

Output Schema

NameRequiredDescriptionDefault
itemsNoCupons: id, code, description, url, validade e desconto.
totalNoQuantos casaram com o filtro (todas as páginas).
successNo
has_moreNotrue quando há mais itens depois desta página.
next_offsetNooffset da próxima página; null na última.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint, destructiveHint=false), but the description adds behavior they cannot express: results are restricted to coupons valid right now, no link/URL field comes back, and null-code coupons follow a different redemption path. Those are the traits most likely to cause a wrong downstream action if undisclosed.

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 definition is front-loaded with what it is and what it does not return, and each later sentence carries operational weight. It is somewhat dense, and enumerating all seven discount fields plus the pagination keys duplicates what the output schema already provides.

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 annotations covering safety and an output schema present, the description need not explain return shape, yet it does list fields and pagination keys — redundant but harmless. Everything an agent needs to call it correctly (filters, valid-now restriction, missing link) is present.

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 q, site, site_id, limit and offset are already documented in the schema, and the description largely restates them. The one genuine addition is the cross-tool provenance of site_id ("de list_coupon_categories"), which the schema does not say.

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 ("Lista os cupons públicos publicados pelo Nerd Ofertas") plus the exact scope (only currently valid coupons) and the fields returned. It also draws a hard line against the sibling convert_links, which produces links this tool never returns, so an agent can pick between them without opening either 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 tells the agent what to do when a usable link is needed ("gere o link de afiliado do usuário para a loja com convert_links"), including the edge case of coupons with code null that are redeemed through the store link. It also names list_coupon_categories as the source of site_id, routing the agent across three tools explicitly.

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