Skip to main content
Glama
A1-x-Tech

mcp-shopify-admin

Список скидок

list_discounts
Read-onlyIdempotent

List Shopify store discounts with filters for status, type, or title. Returns promo and automatic discounts with codes, usage counts, and cursor pagination.

Instructions

Возвращает страницу скидок магазина — промокодных и автоматических: тип (__typename), название, статус, период действия, лимит использований, для кодовых — до 5 кодов и счётчик применений. Пагинация курсорная (hasNextPage/endCursor → after). query — строка поиска Shopify: "status:active", "type:code", "title:BLACKFRIDAY". Ничего не создаёт и не выключает.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoendCursor предыдущей страницы — продолжить с него.
firstNoРазмер страницы, 1..250. По умолчанию 20.
queryNoСтрока поиска Shopify: "status:active", "type:code", "title:BLACKFRIDAY".
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint false. The description adds behavioral detail beyond annotations by explaining pagination mechanics, exposing that code discounts include up to 5 codes and an application counter, and reiterating safety. No contradiction with annotations.

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?

The description is compact and well-ordered: purpose, return fields, pagination, query syntax, and safety note. Every clause contributes meaningful information without redundancy or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 compensates by listing the returned fields and pagination contract. All three optional parameters are fully covered by the schema and reinforced by the description, making the definition complete for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds value by illustrating real query strings and mapping endCursor to the 'after' parameter, which gives practical meaning beyond the schema definitions.

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 opens with a specific verb+resource ('Возвращает страницу скидок магазина') and enumerates the returned fields, making the tool's purpose explicit. It also distinguishes itself from mutation siblings by stating it creates and disables nothing, which differentiates it from create_basic_discount.

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

Usage Guidelines4/5

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

It provides concrete usage context: Shopify query syntax examples, cursor-based pagination instructions, and a clear read-only scope. It does not explicitly name an alternative or when-not-to-use case, but the context is unambiguous enough for correct selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/A1-x-Tech/mcp-shopify-admin'

If you have feedback or need assistance with the MCP directory API, please join our Discord server