Skip to main content
Glama

İndirimleri listele

list_discounts
Read-onlyIdempotent

Retrieves discount codes or automatic discounts from a Shopier shop, returning pagination details with page and total record counts.

Instructions

İndirim kodlarını (codes) veya otomatik indirimleri (automatic) listeler. Yanıttaki pagination alanı sayfa ve toplam kayıt sayısını gösterir.

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_discounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNocodes
pageNoSayfa numarası (varsayılan 1).
sortNoTarihe göre sıralama (varsayılan dateDesc).
limitNoSayfa başına kayıt, en fazla 50 (varsayılan 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

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, idempotentHint=true, destructiveHint=false and openWorldHint=true, so safety and side-effect questions are answered structurally. The description adds genuinely new behavioral context by naming the pagination field in the response as the carrier of page and total-count information. It stops short of stating rate limits, ordering defaults, or whether a large total requires paging through with `page`.

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?

Two short sentences, front-loaded with the resource being listed, with no filler or repetition of the tool title. Slightly terse given that a second sentence is devoted to pagination while the sort/limit behavior goes unmentioned.

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?

No output schema exists, so the description's disclosure of the pagination field is exactly the kind of return-value information the agent needs. For a zero-required-parameter read-only list tool with 75% schema coverage this is close to sufficient; only paging strategy and result ordering behavior are left implicit.

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 coverage is 75% and page, sort and limit already carry Turkish descriptions with defaults and bounds. The description only adds meaning for `kind`, spelling out that codes and automatic are the two enumerable discount families, which is useful but does not go beyond the enum values themselves. Baseline 3 is appropriate given the schema does most of the work.

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 (listeler) and resource (İndirim kodları / otomatik indirimler) and distinguishes the two modes it can return. Sibling tools cover entirely different resources (orders, products, payouts), so no further sibling differentiation is needed, though the description never says what a discount record contains.

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: the agent can infer this is the tool for browsing discounts, and the codes/automatic split is named. There is no explicit when-to-use or when-not-to-use guidance, no note that page=1 is the starting point, and no hint about how to iterate pages.

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